python312: use vendored mpdecimal library on darwin

Building with --with-system-mpdecimal fails on both darwin architectures,
independent of the mpdecimal version used.
This commit is contained in:
Martin Weinelt 2024-02-05 17:00:10 +01:00
parent 5f4d3d57a7
commit 76f6ad253d
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -386,6 +386,9 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
configureFlags = [
"--without-ensurepip"
"--with-system-expat"
] ++ optionals (!(stdenv.isDarwin && pythonAtLeast "3.12")) [
# ./Modules/_decimal/_decimal.c:4673:6: error: "No valid combination of CONFIG_64, CONFIG_32 and _PyHASH_BITS"
# https://hydra.nixos.org/build/248410479/nixlog/2/tail
"--with-system-libmpdec"
] ++ optionals (openssl != null) [
"--with-openssl=${openssl.dev}"