We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d7c037 + ef35af3 commit dc1fd4dCopy full SHA for dc1fd4d
pkgs/development/interpreters/python/cpython/default.nix
@@ -434,6 +434,9 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
434
for path in /usr /sw /opt /pkg; do
435
substituteInPlace ./setup.py --replace-warn $path /no-such-path
436
done
437
+ '' + optionalString (stdenv.hostPlatform.isDarwin && pythonOlder "3.12") ''
438
+ # Fix _ctypes module compilation
439
+ export NIX_CFLAGS_COMPILE+=" -DUSING_APPLE_OS_LIBFFI=1"
440
'' + optionalString stdenv.hostPlatform.isDarwin ''
441
# Override the auto-detection in setup.py, which assumes a universal build
442
export PYTHON_DECIMAL_WITH_MACHINE=${if stdenv.hostPlatform.isAarch64 then "uint128" else "x64"}
0 commit comments