zlib: build with the bootstrap stdenv on Darwin
Using the bootstrap stdenv avoids an infinite recursion from xcbuild depending on zlib depending on xcrun from xcbuild, which is propagated by the non-bootstrap stdenv.
This commit is contained in:
@@ -23701,7 +23701,15 @@ with pkgs;
|
||||
|
||||
zeitgeist = callPackage ../development/libraries/zeitgeist { };
|
||||
|
||||
zlib = callPackage ../development/libraries/zlib { };
|
||||
zlib = callPackage ../development/libraries/zlib {
|
||||
stdenv =
|
||||
# zlib is a dependency of xcbuild. Avoid an infinite recursion by using a bootstrap stdenv
|
||||
# that does not propagate xcrun.
|
||||
if stdenv.hostPlatform.isDarwin then
|
||||
darwin.bootstrapStdenv
|
||||
else
|
||||
stdenv;
|
||||
};
|
||||
|
||||
zlib-ng = callPackage ../development/libraries/zlib-ng { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user