diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-15 22:05:13 -0500 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-11-15 22:06:33 -0500 |
commit | 31b0ba6846c2b251a80fbe3c6d1396a8bb99a18c (patch) | |
tree | 4ef8ab4751c59b1f48c46fa781ad657e9c062d1d /pkgs/servers/search | |
parent | 1181aa74bcba03558eb18db93823a70305ddc56d (diff) |
groonga: fix build with clang 16
Prevent a warning about using a GNU extension from being treated as an error by clang.
Diffstat (limited to 'pkgs/servers/search')
-rw-r--r-- | pkgs/servers/search/groonga/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/servers/search/groonga/default.nix b/pkgs/servers/search/groonga/default.nix index 7b7717828e17e..fbf9f06cff72e 100644 --- a/pkgs/servers/search/groonga/default.nix +++ b/pkgs/servers/search/groonga/default.nix @@ -31,6 +31,11 @@ stdenv.mkDerivation rec { optional zlibSupport "--with-zlib" ++ optional lz4Support "--with-lz4"; + env = lib.optionalAttrs stdenv.cc.isClang { + # Prevent warning about using a GNU extension from being promoted to an error. + NIX_CFLAGS_COMPILE = "-Wno-error=gnu-folding-constant"; + }; + doInstallCheck = true; installCheckPhase = "$out/bin/groonga --version"; |