diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 977dd577fc90..6d0ea709e46e 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -815,7 +815,12 @@ stdenv.mkDerivation (finalAttrs: { platforms = platforms.linux ++ platforms.darwin ++ platforms.windows ++ platforms.freebsd; mainProgram = executable; maintainers = lib.teams.python.members; + # static build on x86_64-darwin/aarch64-darwin breaks with: + # configure: error: C compiler cannot create executables + # mingw patches only apply to Python 3.11 currently - broken = (lib.versions.minor version) != "11" && stdenv.hostPlatform.isWindows; + broken = + (lib.versions.minor version != "11" && stdenv.hostPlatform.isWindows) + || (stdenv.hostPlatform.isStatic && stdenv.hostPlatform.isDarwin); }; })