summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorStéphan Kochen <git@stephank.nl>2021-05-15 17:28:37 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-15 13:11:42 -0700
commit5548ff174ca661d6585f8838a9d1c72003daf603 (patch)
tree77ab729f8ee032b49eadb7f64c0e3826ab8e5ab7 /pkgs/applications
parent21108101a5051e8733a379d2091dd938c6920ab2 (diff)
downloadnixpkgs-5548ff174ca661d6585f8838a9d1c72003daf603.tar
nixpkgs-5548ff174ca661d6585f8838a9d1c72003daf603.tar.gz
nixpkgs-5548ff174ca661d6585f8838a9d1c72003daf603.tar.bz2
nixpkgs-5548ff174ca661d6585f8838a9d1c72003daf603.tar.lz
nixpkgs-5548ff174ca661d6585f8838a9d1c72003daf603.tar.xz
nixpkgs-5548ff174ca661d6585f8838a9d1c72003daf603.tar.zst
nixpkgs-5548ff174ca661d6585f8838a9d1c72003daf603.zip
getxbook: fix clang build
Diffstat (limited to 'pkgs/applications')
-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 a69f8d7f057..15b7c37244f 100644
--- a/pkgs/applications/misc/getxbook/default.nix
+++ b/pkgs/applications/misc/getxbook/default.nix
@@ -9,11 +9,13 @@ stdenv.mkDerivation rec {
     sha256 = "0ihwrx4gspj8l7fc8vxch6dpjrw1lvv9z3c19f0wxnmnxhv1cjvs";
   };
 
-  NIX_CFLAGS_COMPILE = builtins.toString [
-    "-Wno-error=format-truncation"
-    "-Wno-error=deprecated-declarations"
-    "-Wno-error=stringop-overflow"
-  ];
+  NIX_CFLAGS_COMPILE = builtins.toString (
+    [ "-Wno-error=deprecated-declarations" ]
+      ++ lib.optionals (!stdenv.cc.isClang) [
+        "-Wno-error=format-truncation"
+        "-Wno-error=stringop-overflow"
+      ]
+  );
 
   buildInputs = [ openssl ];