diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-11-16 04:52:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 04:52:49 -0500 |
commit | 24b8833b60502f82c3d5926ddae4a68872278f3d (patch) | |
tree | 24a07cbeec0756a209b2055399f1c047fd188dab /pkgs/servers | |
parent | 0fe5300699182cd6e2d6f6e2459671e6d5ffd69b (diff) | |
parent | 31b0ba6846c2b251a80fbe3c6d1396a8bb99a18c (diff) |
Merge pull request #267791 from reckenrode/groonga-fix
groonga: fix build with clang 16
Diffstat (limited to 'pkgs/servers')
-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"; |