python3Minimal: ensure _scproxy is disabled on Darwin

Python 3.12 attempts to build with the _scproxy enabled even when building python3Minimal. Override the configure check to make sure it is disabled. Otherwise, the Darwin stdenv bootstrap will fail.
This commit is contained in:
Randy Eckenrode 2024-06-24 19:43:37 -04:00
parent 1dacb521f9
commit da8f4fd6cb
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -417,6 +417,9 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
(enableFeature enableGIL "gil")
] ++ optionals enableOptimizations [
"--enable-optimizations"
] ++ optionals (stdenv.isDarwin && configd == null) [
# Make conditional on Darwin for now to avoid causing Linux rebuilds.
"py_cv_module__scproxy=n/a"
] ++ optionals (sqlite != null) [
"--enable-loadable-sqlite-extensions"
] ++ optionals (libxcrypt != null) [