Skip to content

Commit 5bf39d5

Browse files
committed
python3: disable static darwin builds
1 parent 3ef9c44 commit 5bf39d5

File tree

1 file changed

+6
-1
lines changed
  • pkgs/development/interpreters/python/cpython

1 file changed

+6
-1
lines changed

pkgs/development/interpreters/python/cpython/default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,12 @@ stdenv.mkDerivation (finalAttrs: {
815815
platforms = platforms.linux ++ platforms.darwin ++ platforms.windows ++ platforms.freebsd;
816816
mainProgram = executable;
817817
maintainers = lib.teams.python.members;
818+
# static build on x86_64-darwin/aarch64-darwin breaks with:
819+
# configure: error: C compiler cannot create executables
820+
818821
# mingw patches only apply to Python 3.11 currently
819-
broken = (lib.versions.minor version) != "11" && stdenv.hostPlatform.isWindows;
822+
broken =
823+
(lib.versions.minor version != "11" && stdenv.hostPlatform.isWindows)
824+
|| (stdenv.hostPlatform.isStatic && stdenv.hostPlatform.isDarwin);
820825
};
821826
})

0 commit comments

Comments
 (0)