3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #175161 from risicle/ris-uamqp-darwin-aarch64

This commit is contained in:
Sandro 2022-05-30 23:53:35 +02:00 committed by GitHub
commit d0e5e8877f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,19 @@ buildPythonPackage rec {
./darwin-azure-c-shared-utility-corefoundation.patch
];
postPatch = lib.optionalString (stdenv.isDarwin && !stdenv.isx86_64) ''
# force darwin aarch64 to use openssl instead of applessl, removing
# some quirks upstream thinks they need to use openssl on macos
sed -i \
-e '/^use_openssl =/cuse_openssl = True' \
-e 's/\bazssl\b/ssl/' \
-e 's/\bazcrypto\b/crypto/' \
setup.py
sed -i \
-e '/#define EVP_PKEY_id/d' \
src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/x509_openssl.c
'';
nativeBuildInputs = [
cmake
];