Added option to override stdenv for all packages
svn path=/nixpkgs/trunk/; revision=9134
This commit is contained in:
parent
920ce3551d
commit
bf087c5cd4
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue