@@ -9,11 +9,13 @@ stdenv.mkDerivation rec {
99 sha256 = "0ihwrx4gspj8l7fc8vxch6dpjrw1lvv9z3c19f0wxnmnxhv1cjvs";
1010 };
1111
12− NIX_CFLAGS_COMPILE = builtins.toString [
13− "-Wno-error=format-truncation"
14− "-Wno-error=deprecated-declarations"
15− "-Wno-error=stringop-overflow"
16− ];
12+ NIX_CFLAGS_COMPILE = builtins.toString (
13+ [ "-Wno-error=deprecated-declarations" ]
14+ ++ lib.optionals (!stdenv.cc.isClang) [
15+ "-Wno-error=format-truncation"
16+ "-Wno-error=stringop-overflow"
17+ ]
18+ );
1719
1820 buildInputs = [ openssl ];
1921