nginx: fix build on darwin

This commit is contained in:
Weijia Wang 2023-11-18 17:01:10 +01:00
parent 5d11cc77b2
commit add7a091c6

View file

@ -124,7 +124,11 @@ stdenv.mkDerivation {
] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [
# fix build vts module on gcc11
"-Wno-error=stringop-overread"
] ++ lib.optional stdenv.isDarwin "-Wno-error=deprecated-declarations");
] ++ lib.optionals stdenv.isDarwin [
"-Wno-error=deprecated-declarations"
"-Wno-error=gnu-folding-constant"
"-Wno-error=unused-but-set-variable"
]);
configurePlatforms = [];