libffi: use darwin.libffi on Darwin (#360920)

authored by Emily and committed by GitHub 428a7015 a44f4af0

+6 -1
+6 -1
pkgs/top-level/all-packages.nix
··· 9647 9647 python = python3; 9648 9648 }; 9649 9649 9650 - libffi = callPackage ../development/libraries/libffi { }; 9650 + # Use Apple’s fork of libffi by default, which provides APIs and trampoline functionality that is not yet 9651 + # merged upstream. This is needed by some packages (such as cffi). 9652 + # 9653 + # `libffiReal` is provided in case the upstream libffi package is needed on Darwin instead of the fork. 9654 + libffiReal = callPackage ../development/libraries/libffi { }; 9655 + libffi = if stdenv.hostPlatform.isDarwin then darwin.libffi else libffiReal; 9651 9656 libffi_3_3 = callPackage ../development/libraries/libffi/3.3.nix { }; 9652 9657 libffiBoot = libffi.override { 9653 9658 doCheck = false;