From a97a00fcebe2e4186642282b289bcee87a1f0aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 25 Apr 2022 07:45:16 +0200 Subject: [PATCH] nginx: fixup build with other than gcc11 This parameter isn't known by clang or older gcc, and that breaks compilation there: https://hydra.nixos.org/build/174714339 https://hydra.nixos.org/build/174713306 Flag was added in commit 6508304a in PR #170102. --- pkgs/servers/http/nginx/generic.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 3151f3a2bf9e..f6b91d77511e 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -107,6 +107,7 @@ stdenv.mkDerivation { NIX_CFLAGS_COMPILE = toString ([ "-I${libxml2.dev}/include/libxml2" "-Wno-error=implicit-fallthrough" + ] ++ optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ # fix build vts module on gcc11 "-Wno-error=stringop-overread" ] ++ optional stdenv.isDarwin "-Wno-error=deprecated-declarations");