From bf45402971c5773a7c07eb8000a2d84395fd4294 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 7 Sep 2024 22:01:39 -0400 Subject: [PATCH] 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. --- pkgs/top-level/all-packages.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e822d46ec9e1..c081a7026bef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };