From 27a9dd926467500db964b1af3fa290e6e9985f19 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Wed, 22 May 2024 20:53:11 -0300 Subject: [PATCH] pkgsMusl.nginx: fix build Fixes: > error: #warning usage of non-standard #include is deprecated [-Werror=cpp] --- pkgs/servers/http/nginx/generic.nix | 3 +++ 1 file changed, 3 insertions(+) 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 = [];