forked from mirrors/nixpkgs
top-level: libcCrossChooser: More or
fallback hack
This fixes some eval errors in release-cross.nix
This commit is contained in:
parent
24e2bc18b6
commit
984df7ca06
|
@ -9536,11 +9536,11 @@ with pkgs;
|
|||
# libc is hackily often used from the previous stage. This `or`
|
||||
# hack fixes the hack, *sigh*.
|
||||
/**/ if name == "glibc" then targetPackages.glibcCross or glibcCross
|
||||
else if name == "bionic" then targetPackages.bionic
|
||||
else if name == "uclibc" then targetPackages.uclibcCross
|
||||
else if name == "bionic" then targetPackages.bionic or bionic
|
||||
else if name == "uclibc" then targetPackages.uclibcCross or uclibcCross
|
||||
else if name == "musl" then targetPackages.muslCross or muslCross
|
||||
else if name == "msvcrt" then targetPackages.windows.mingw_w64 or windows.mingw_w64
|
||||
else if stdenv.targetPlatform.useiOSPrebuilt then targetPackages.darwin.iosSdkPkgs.libraries
|
||||
else if stdenv.targetPlatform.useiOSPrebuilt then targetPackages.darwin.iosSdkPkgs.libraries or darwin.iosSdkPkgs.libraries
|
||||
else if name == "libSystem" then targetPackages.darwin.xcode
|
||||
else throw "Unknown libc";
|
||||
|
||||
|
|
Loading…
Reference in a new issue