From 21dc93570f72f741ba6541837ac775441219e5c2 Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Tue, 31 May 2022 18:45:07 +0300 Subject: [PATCH] python3Packages.awscrt: fix darwin build --- pkgs/development/python-modules/awscrt/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/awscrt/default.nix b/pkgs/development/python-modules/awscrt/default.nix index 1762fee0d7ba..2ffb2a9060b9 100644 --- a/pkgs/development/python-modules/awscrt/default.nix +++ b/pkgs/development/python-modules/awscrt/default.nix @@ -33,6 +33,11 @@ buildPythonPackage rec { "strictoverflow" ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "extra_link_args += ['-Wl,-fatal_warnings']" "" + ''; + # gcc <10 is not supported, LLVM on darwin is just fine nativeBuildInputs = [ cmake @@ -52,7 +57,6 @@ buildPythonPackage rec { doCheck = false; meta = with lib; { - broken = stdenv.isDarwin; homepage = "https://github.com/awslabs/aws-crt-python"; description = "Python bindings for the AWS Common Runtime"; license = licenses.asl20;