forked from mirrors/nixpkgs
Fixing some conflict on the variable 'cross'.
svn path=/nixpkgs/branches/stdenv-updates/; revision=18357
This commit is contained in:
parent
81f695899a
commit
d06dce4e42
|
@ -18,7 +18,7 @@ let
|
||||||
result =
|
result =
|
||||||
|
|
||||||
derivation {
|
derivation {
|
||||||
inherit system cross name;
|
inherit system name cross;
|
||||||
|
|
||||||
builder = shell;
|
builder = shell;
|
||||||
|
|
||||||
|
@ -53,7 +53,9 @@ let
|
||||||
["-e" (if attrs ? builder then attrs.builder else ./default-builder.sh)];
|
["-e" (if attrs ? builder then attrs.builder else ./default-builder.sh)];
|
||||||
stdenv = result;
|
stdenv = result;
|
||||||
system = result.system;
|
system = result.system;
|
||||||
cross = result.cross;
|
# The env variable 'cross' is used in all the crosscompiler
|
||||||
|
# bootstrapping in another sense
|
||||||
|
crossTarget = result.cross;
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
# The meta attribute is passed in the resulting attribute set,
|
# The meta attribute is passed in the resulting attribute set,
|
||||||
|
|
|
@ -208,7 +208,7 @@ rec {
|
||||||
name = "stdenv-linux" +
|
name = "stdenv-linux" +
|
||||||
stdenvLinuxBoot3Pkgs.lib.optionalString (cross != null) "-${cross}";
|
stdenvLinuxBoot3Pkgs.lib.optionalString (cross != null) "-${cross}";
|
||||||
|
|
||||||
inherit system;
|
inherit system cross;
|
||||||
|
|
||||||
preHook = builtins.toFile "prehook.sh" commonPreHook;
|
preHook = builtins.toFile "prehook.sh" commonPreHook;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue