Added option to override stdenv for all packages

svn path=/nixpkgs/trunk/; revision=9134
This commit is contained in:
Michael Raskin 2007-08-15 15:45:27 +00:00
parent 920ce3551d
commit bf087c5cd4

View File

@ -176,7 +176,17 @@ rec {
allPackages = import ./all-packages.nix;
}).stdenv;
stdenv = if bootStdenv == null then defaultStdenv else bootStdenv;
stdenv = if (bootStdenv == null) then
let
optionPath = ["replaceStdenv"]; in
let
changer = getConfig optionPath null; in
(if changer != null then
changer {stdenv = defaultStdenv;
overrideSetup = overrideSetup;}
else defaultStdenv)
else
bootStdenv;
### BUILD SUPPORT