From 28211c5c65c83de8f327e5f61e5dd4e73facb705 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 27 Apr 2023 23:33:06 +0300 Subject: [PATCH] python310Packages.uamqp: fix build on aarch64-darwin --- pkgs/development/python-modules/uamqp/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/uamqp/default.nix b/pkgs/development/python-modules/uamqp/default.nix index 24d2b7b34630..2ae0d32a5679 100644 --- a/pkgs/development/python-modules/uamqp/default.nix +++ b/pkgs/development/python-modules/uamqp/default.nix @@ -40,6 +40,9 @@ buildPythonPackage rec { sed -i \ -e '/#define EVP_PKEY_id/d' \ src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/adapters/x509_openssl.c + sed -z -i \ + -e 's/OpenSSL 3\nif(LINUX)/OpenSSL 3\nif(1)/' \ + src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/CMakeLists.txt ''; nativeBuildInputs = [