diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2024-05-22 20:53:11 -0300 |
---|---|---|
committer | superherointj <5861043+superherointj@users.noreply.github.com> | 2024-05-22 20:58:30 -0300 |
commit | 27a9dd926467500db964b1af3fa290e6e9985f19 (patch) | |
tree | ca948af8e25be51cab8331b91908c87c9a00bde3 /pkgs/servers/http | |
parent | f98fa31fd3c57db4e5286c574ecda7d39720aa25 (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.nix | 3 |
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 = []; |