ncurses: build with the bootstrap stdenv on Darwin

Using the bootstrap stdenv avoids an infinite recursion from xcbuild
depending on ncurses depending on xcrun from xcbuild, which is
propagated by the non-bootstrap stdenv.
This commit is contained in:
Randy Eckenrode
2024-10-10 16:23:02 -04:00
parent 34ce30c35a
commit bf45402971
+8 -1
View File
@@ -22201,7 +22201,14 @@ with pkgs;
ncurses =
if stdenv.hostPlatform.useiOSPrebuilt
then null
else callPackage ../development/libraries/ncurses { };
else callPackage ../development/libraries/ncurses {
# ncurses is included in the SDK. Avoid an infinite recursion by using a bootstrap stdenv.
stdenv =
if stdenv.isDarwin then
darwin.bootstrapStdenv
else
stdenv;
};
ndi = callPackage ../development/libraries/ndi { };