Added option to override stdenv for all packages
svn path=/nixpkgs/trunk/; revision=9134
This commit is contained in:
parent
920ce3551d
commit
bf087c5cd4
@ -176,7 +176,17 @@ rec {
|
|||||||
allPackages = import ./all-packages.nix;
|
allPackages = import ./all-packages.nix;
|
||||||
}).stdenv;
|
}).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
|
### BUILD SUPPORT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user