Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Last active December 23, 2019 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/16873623f6a33ee192f0f4cdf4d2b598 to your computer and use it in GitHub Desktop.
Save cleverca22/16873623f6a33ee192f0f4cdf4d2b598 to your computer and use it in GitHub Desktop.
installing nix on arm
https://hydra.angeldsis.com/build/97685
root@raspberrypi:~# wget https://hydra.angeldsis.com/build/97685/download/1/nix_tarball.tar.xz
root@raspberrypi:/# tar -xvf /root/nix_tarball.tar.xz
root@raspberrypi:/# chown pi -R nix-path-registration nix-built nix
pi@raspberrypi:~ $ /nix-built/bin/nix-store --load-db < /nix-path-registration
pi@raspberrypi:~ $ /nix-built/bin/nix-env -i /nix-built
installing 'nix-2.3.1-armv7l-unknown-linux-gnueabihf'
building '/nix/store/lyc72g07w38hjvs314d9alzcxn05wij9-user-environment.drv'...
created 5 symlinks in user environment
pi@raspberrypi:~ $ source /nix-built/etc/profile.d/nix.sh
pi@raspberrypi:~ $ nix-env -q
nix-2.3.1-armv7l-unknown-linux-gnueabihf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment