git.iko.soy/typeable/nixpkgs
on master help sign in
getxbook: fix clang build
commit5548ff174ca661d6585f8838a9d1c72003daf603 authorStéphan Kochen <git@stephank.nl> dateSat 15 May 2021, 17:28 (6 years ago) parent2110810
1 file changed+7−5
pkgs/applications/misc/getxbook/default.nix+7−5
pkgs/applications/misc/getxbook/default.nix+7−5
@@ -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