Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: 725a4d67404f4cf204386e52646cf42ecab394b3
      
https://github.com/NixOS/nixpkgs/commit/725a4d67404f4cf204386e52646cf42ecab394b3
  Author: Tuomas Tynkkynen <[email protected]>
  Date:   2015-09-30 (Wed, 30 Sep 2015)

  Changed paths:
    M nixos/modules/installer/tools/nixos-install.sh

  Log Message:
  -----------
  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.


  Commit: ab16b6a83719b779e5fbea9b594d1dd09b3bcd76
      
https://github.com/NixOS/nixpkgs/commit/ab16b6a83719b779e5fbea9b594d1dd09b3bcd76
  Author: Eelco Dolstra <[email protected]>
  Date:   2015-09-30 (Wed, 30 Sep 2015)

  Changed paths:
    M nixos/modules/installer/tools/nixos-install.sh

  Log Message:
  -----------
  Merge pull request #10160 from dezgeg/pr-unset-build-hook-in-nixos-install

nixos-install: Don't use NIX_BUILD_HOOK from caller's environment


Compare: https://github.com/NixOS/nixpkgs/compare/647671bc537d...ab16b6a83719
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to