···9647 python = python3;
9648 };
96499650+ # 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;
9656 libffi_3_3 = callPackage ../development/libraries/libffi/3.3.nix { };
9657 libffiBoot = libffi.override {
9658 doCheck = false;