3
0
Fork 0
forked from mirrors/nixpkgs

Making the cross-stdenv not to be used unless cross-compiling. This way,

no "hostDrv" or "buildDrv" attributes are added to derivations.

svn path=/nixpkgs/trunk/; revision=19866
This commit is contained in:
Lluís Batlle i Rossell 2010-02-08 15:28:05 +00:00
parent 2bbb78ab94
commit ef43e6fc18

View file

@ -193,7 +193,10 @@ let
stdenv = stdenvCross;
overrideSetup = overrideSetup;
}
else stdenvCross;
else if crossSystem != null then
stdenvCross
else
defaultStdenv;
forceBuildDrv = drv : drv // { hostDrv = drv.buildDrv; };