Some notes:
- Make sure to install libssl-dev
- Boost from apt might be too old
- libeditline might be too old
- When building bdwgc, remember --enable-cplusplus
- libboost-all-dev
- Add -lz to src/libutil/local.mk
- When running configure, remember --prefix=$PWD/inst
- If building the manual fails, try to remove 'src/manual/local.mk' from Makefile
- Stage0 Nix's config file is $(prefix)/etc/nix/nix.conf
sudo nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
- There should be a channel named
nixpkgs
, notnixos
, because that is whatprofile.d/nix-daemon.sh
expects
- There should be a channel named
- ./inst/bin/nix-env -iA nixpkgs.nix
- Might need to specify the full path to the channel or set NIX_PATH explicitly
./inst/bin/nix-env -if /nix/var/nix/profiles/per-user/root/nixpkgs -A nix
- Might need to specify the full path to the channel or set NIX_PATH explicitly
- Source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh and /nix/var/nix/profiles/default/etc/profile.d/nix.sh
- If there's an error about failing to mount/remount /proc, disable the sandbox