Fix the usage of cross packages during nix-env listings

This commit is contained in:
William A. Kennington III 2015-06-22 12:25:53 -07:00
parent 282d03befa
commit 094bf83b26

View File

@ -5155,7 +5155,7 @@ let
gold = false; gold = false;
}); });
binutilsCross = lowPrio (forceNativeDrv ( binutilsCross = assert crossSystem != null; lowPrio (forceNativeDrv (
if crossSystem.libc == "libSystem" then darwin.cctools_cross if crossSystem.libc == "libSystem" then darwin.cctools_cross
else binutils.override { else binutils.override {
noSysDirs = true; noSysDirs = true;
@ -6152,7 +6152,7 @@ let
else if name == "libSystem" then darwin.xcode else if name == "libSystem" then darwin.xcode
else throw "Unknown libc"; else throw "Unknown libc";
libcCross = libcCrossChooser crossSystem.libc; libcCross = assert crossSystem != null; libcCrossChooser crossSystem.libc;
# Only supported on Linux # Only supported on Linux
glibcLocales = if stdenv.isLinux then callPackage ../development/libraries/glibc/locales.nix { } else null; glibcLocales = if stdenv.isLinux then callPackage ../development/libraries/glibc/locales.nix { } else null;