diff --git a/pkgs/development/python-modules/cffi/default.nix b/pkgs/development/python-modules/cffi/default.nix index bbdd6bf08cfc2..91e31a9fefd0a 100644 --- a/pkgs/development/python-modules/cffi/default.nix +++ b/pkgs/development/python-modules/cffi/default.nix @@ -69,7 +69,10 @@ else # The tests use -Werror but with python3.6 clang detects some unreachable code. env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing"; - doCheck = !(stdenv.hostPlatform.isMusl || stdenv.hostPlatform.useLLVM or false); + doCheck = + !( + stdenv.hostPlatform.isMusl || (stdenv.hostPlatform.cc == "clang" && !stdenv.hostPlatform.isDarwin) + ); nativeCheckInputs = [ pytestCheckHook ];