groonga: fix build with clang 16

Prevent a warning about using a GNU extension from being treated as an
error by clang.
This commit is contained in:
Randy Eckenrode 2023-11-15 22:05:13 -05:00
parent 1181aa74bc
commit 31b0ba6846
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -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";