Fixing a typo. And letting stdenvCross be prioritary to the global override.
svn path=/nixpkgs/trunk/; revision=31748
This commit is contained in:
parent
2f2ce81046
commit
09fee60ee2
@ -204,6 +204,9 @@ let
|
|||||||
|
|
||||||
stdenv =
|
stdenv =
|
||||||
if bootStdenv != null then (bootStdenv // {inherit platform;}) else
|
if bootStdenv != null then (bootStdenv // {inherit platform;}) else
|
||||||
|
if crossSystem != null then
|
||||||
|
stdenvCross
|
||||||
|
else
|
||||||
let
|
let
|
||||||
changer = getConfig ["replaceStdenv"] null;
|
changer = getConfig ["replaceStdenv"] null;
|
||||||
in if changer != null then
|
in if changer != null then
|
||||||
@ -214,8 +217,6 @@ let
|
|||||||
config = removeAttrs config [ "replaceStdenv" ];
|
config = removeAttrs config [ "replaceStdenv" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if crossSystem != null then
|
|
||||||
stdenvCross
|
|
||||||
else
|
else
|
||||||
defaultStdenv;
|
defaultStdenv;
|
||||||
|
|
||||||
@ -2894,7 +2895,7 @@ let
|
|||||||
|
|
||||||
# Wrapper that works as gcc or g++
|
# Wrapper that works as gcc or g++
|
||||||
# It can be used by setting in nixpkgs config like this, for example:
|
# It can be used by setting in nixpkgs config like this, for example:
|
||||||
# replaceStdenv = { pkgs }: (pkgs.ccacheStdenv "/var/ccache")
|
# replaceStdenv = { pkgs }: (pkgs.ccacheStdenv "/var/ccache");
|
||||||
# But if you build in chroot, you should have that path in chroot
|
# But if you build in chroot, you should have that path in chroot
|
||||||
ccacheWrapper = cacheDir: wrapGCC (ccache.links cacheDir);
|
ccacheWrapper = cacheDir: wrapGCC (ccache.links cacheDir);
|
||||||
ccacheStdenv = cacheDir: overrideGCC stdenv (ccacheWrapper cacheDir);
|
ccacheStdenv = cacheDir: overrideGCC stdenv (ccacheWrapper cacheDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user