3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/installer
Tuomas Tynkkynen 725a4d6740 nixos-install: Don't use NIX_BUILD_HOOK from caller's environment
If nixos-install is run on a machine with `nix.distributedBuilds = true`
the installation will fail at some point like this:

Died at /nix/store/4frhrl31cl7iahlz6vyvysy5dmr6xnh3-nix-1.10/libexec/nix/build-remote.pl line 115, <STDIN> line 1.

This is due to `nix.distributedBuilds` setting
NIX_BUILD_HOOK=/nix/store/.../build-remote.pl in the global environment,
which then gets confused in the minimal chroot created by nixos-install.

To avoid these kinds of issues with build hooks, just disable them in
the chroot.
2015-09-30 23:02:21 +03:00
..
cd-dvd channel.nix: Fix broken flag to skip substitutes 2015-09-27 21:06:35 +02:00
scan Rewrite ‘with pkgs.lib’ -> ‘with lib’ 2014-04-14 16:26:48 +02:00
tools nixos-install: Don't use NIX_BUILD_HOOK from caller's environment 2015-09-30 23:02:21 +03:00
virtualbox-demo.nix Revert "Revert "Merge pull request #2449 from wkennington/master.grub"" 2014-09-02 09:16:13 -07:00