From 6508304a8893567ef6b2bf73baaed0f0dda75319 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Sun, 24 Apr 2022 18:13:13 +0300 Subject: [PATCH] nginxModules.vts: fix build on gcc11 --- pkgs/servers/http/nginx/generic.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 9d0737a8f32c..3151f3a2bf9e 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -107,6 +107,8 @@ stdenv.mkDerivation { NIX_CFLAGS_COMPILE = toString ([ "-I${libxml2.dev}/include/libxml2" "-Wno-error=implicit-fallthrough" + # fix build vts module on gcc11 + "-Wno-error=stringop-overread" ] ++ optional stdenv.isDarwin "-Wno-error=deprecated-declarations"); configurePlatforms = [];