about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-21 03:10:57 +0100
committerGitHub <noreply@github.com>2023-11-21 03:10:57 +0100
commit5448ed613965c54ce3622e88c27e0bff4a676127 (patch)
tree19853a486c44694c57e33e6f12b61b4e72d0019e
parentd28b36b938621c80c42c30bb63ddda909dee7536 (diff)
parent1ce7329f6bbe7efcdf054977f20b36958be7bca5 (diff)
Merge pull request #268763 from wegank/xnee-darwin
xnee: fix build with clang 16
-rw-r--r--pkgs/tools/X11/xnee/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/X11/xnee/default.nix b/pkgs/tools/X11/xnee/default.nix
index ac232f917bd78..b6fe79c7b9cf9 100644
--- a/pkgs/tools/X11/xnee/default.nix
+++ b/pkgs/tools/X11/xnee/default.nix
@@ -74,6 +74,12 @@ stdenv.mkDerivation (finalAttrs: {
     "LDFLAGS=-lXi"
   ];
 
+  # error: call to undeclared function 'xnee_check_key';
+  # ISO C99 and later do not support implicit function declarations
+  env = lib.optionalAttrs stdenv.cc.isClang {
+    NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
+  };
+
   # XXX: Actually tests require an X server.
   doCheck = true;