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.
1 parent 8db87f2 commit ef35af3Copy full SHA for ef35af3
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