about summary refs log tree commit diff
path: root/pkgs/servers/http
diff options
context:
space:
mode:
authorsuperherointj <5861043+superherointj@users.noreply.github.com>2024-05-22 20:53:11 -0300
committersuperherointj <5861043+superherointj@users.noreply.github.com>2024-05-22 20:58:30 -0300
commit27a9dd926467500db964b1af3fa290e6e9985f19 (patch)
treeca948af8e25be51cab8331b91908c87c9a00bde3 /pkgs/servers/http
parentf98fa31fd3c57db4e5286c574ecda7d39720aa25 (diff)
pkgsMusl.nginx: fix build
Fixes:

> error: #warning usage of non-standard #include <sys/cdefs.h> is deprecated [-Werror=cpp]
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r--pkgs/servers/http/nginx/generic.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix
index e998675b57664..67e84f08448e4 100644
--- a/pkgs/servers/http/nginx/generic.nix
+++ b/pkgs/servers/http/nginx/generic.nix
@@ -130,6 +130,9 @@ stdenv.mkDerivation {
     "-Wno-error=deprecated-declarations"
     "-Wno-error=gnu-folding-constant"
     "-Wno-error=unused-but-set-variable"
+  ] ++ lib.optionals stdenv.hostPlatform.isMusl [
+    # fix sys/cdefs.h is deprecated
+    "-Wno-error=cpp"
   ]);
 
   configurePlatforms = [];