···96479647 python = python3;
96489648 };
9649964996509650- libffi = callPackage ../development/libraries/libffi { };
96509650+ # Use Apple’s fork of libffi by default, which provides APIs and trampoline functionality that is not yet
96519651+ # merged upstream. This is needed by some packages (such as cffi).
96529652+ #
96539653+ # `libffiReal` is provided in case the upstream libffi package is needed on Darwin instead of the fork.
96549654+ libffiReal = callPackage ../development/libraries/libffi { };
96559655+ libffi = if stdenv.hostPlatform.isDarwin then darwin.libffi else libffiReal;
96519656 libffi_3_3 = callPackage ../development/libraries/libffi/3.3.nix { };
96529657 libffiBoot = libffi.override {
96539658 doCheck = false;