From 8571045ea9ffe632efaf11d9c5b963a1263a1d05 Mon Sep 17 00:00:00 2001 From: Philipp Bartsch Date: Tue, 19 Nov 2024 21:38:51 +0100 Subject: [PATCH] nginx: fix building with clang on linux Building pkgsLLVM.nginx got the same errors as the ones previously disabled for darwin. --- pkgs/servers/http/nginx/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 266c09755ab0..7fd4b77fa023 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -129,7 +129,7 @@ stdenv.mkDerivation { ] ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "11") [ # fix build vts module on gcc11 "-Wno-error=stringop-overread" - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + ] ++ lib.optionals stdenv.cc.isClang [ "-Wno-error=deprecated-declarations" "-Wno-error=gnu-folding-constant" "-Wno-error=unused-but-set-variable"