summaryrefslogtreecommitdiff
path: root/pkgs/applications/misc/getxbook/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/misc/getxbook/default.nix')
-rw-r--r--pkgs/applications/misc/getxbook/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/pkgs/applications/misc/getxbook/default.nix b/pkgs/applications/misc/getxbook/default.nix
index e8d573f28d36..dcfc7f9fff7a 100644
--- a/pkgs/applications/misc/getxbook/default.nix
+++ b/pkgs/applications/misc/getxbook/default.nix
@@ -9,11 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "0ihwrx4gspj8l7fc8vxch6dpjrw1lvv9z3c19f0wxnmnxhv1cjvs";
};
- env.NIX_CFLAGS_COMPILE = builtins.toString [
- "-Wno-error=format-truncation"
- "-Wno-error=deprecated-declarations"
- "-Wno-error=stringop-overflow"
- ];
+ env.NIX_CFLAGS_COMPILE = builtins.toString (
+ [ "-Wno-error=deprecated-declarations" ]
+ ++ lib.optionals (!stdenv.cc.isClang) [
+ "-Wno-error=format-truncation"
+ "-Wno-error=stringop-overflow"
+ ]
+ );
buildInputs = [ openssl ];