From e8bc1b2f975b45015691395aa38e31a39a7ea3e4 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Thu, 3 Jun 2021 01:09:01 +0200 Subject: [PATCH] python3Pacakges.awscrt: only pull in GCC on aarch64-linux --- pkgs/development/python-modules/awscrt/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/awscrt/default.nix b/pkgs/development/python-modules/awscrt/default.nix index 73679eca1e4..26c4334e319 100644 --- a/pkgs/development/python-modules/awscrt/default.nix +++ b/pkgs/development/python-modules/awscrt/default.nix @@ -11,7 +11,9 @@ buildPythonPackage rec { # https://github.com/NixOS/nixpkgs/issues/39687 hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow"; - nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.isAarch64 ([ gcc10 perl ]); + nativeBuildInputs = [ cmake ] ++ + # gcc <10 is not supported, LLVM on darwin is just fine + lib.optionals (!stdenv.isDarwin && stdenv.isAarch64) [ gcc10 perl ]; dontUseCmakeConfigure = true;