Fix the cross-building of packages mentioned in stdenvLinux.overrides.
svn path=/nixpkgs/branches/stdenv-updates/; revision=23043
This commit is contained in:
parent
4137ceaf80
commit
d75e47a383
@ -93,8 +93,12 @@ let
|
|||||||
# (un-overriden) set of packages, allowing packageOverrides
|
# (un-overriden) set of packages, allowing packageOverrides
|
||||||
# attributes to refer to the original attributes (e.g. "foo =
|
# attributes to refer to the original attributes (e.g. "foo =
|
||||||
# ... pkgs.foo ...").
|
# ... pkgs.foo ...").
|
||||||
|
# We don't want stdenv overrides in the case of cross-building, or
|
||||||
|
# otherwise the basic overrided packages will not be built with the
|
||||||
|
# crossStdenv adapter.
|
||||||
overrides = (getConfig ["packageOverrides"] (pkgs: {})) pkgsOrig //
|
overrides = (getConfig ["packageOverrides"] (pkgs: {})) pkgsOrig //
|
||||||
(if pkgsOrig.stdenv ? overrides then pkgsOrig.stdenv.overrides else { });
|
(if (pkgsOrig.stdenv ? overrides && crossSystem == null)
|
||||||
|
then pkgsOrig.stdenv.overrides else { });
|
||||||
|
|
||||||
pkgsOrig = pkgsFun {}; # the un-overriden packages, passed to packageOverrides
|
pkgsOrig = pkgsFun {}; # the un-overriden packages, passed to packageOverrides
|
||||||
pkgs = pkgsFun overrides; # the overriden, final packages
|
pkgs = pkgsFun overrides; # the overriden, final packages
|
||||||
|
Loading…
Reference in New Issue
Block a user