python3Packages.uamqp: use openssl on darwin-aarch64
azure's libraries aren't happy enough with our macos sdk on aarch64 to let us use applessl
This commit is contained in:
parent
7c49511474
commit
6f7557f8c6
|
@ -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
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue