Skip to content

Commit

Permalink
Fix build of Nginx for static files
Browse files Browse the repository at this point in the history
Probably broke with NixOS 23.05.
  • Loading branch information
dpausp committed Oct 24, 2023
1 parent 7152687 commit fbbd820
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions nix/nginx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,7 @@ nginxMainline.overrideAttrs (oldAttrs: rec {
"--without-http_uwsgi_module"
];

NIX_CFLAGS_COMPILE = [
"-Wno-error=implicit-fallthrough"
] ++ lib.optional stdenv.isDarwin "-Wno-error=deprecated-declarations";

configurePlatforms = [ ];

hardeningEnable = lib.optional (!stdenv.isDarwin) "pie";

enableParallelBuilding = true;

postInstall = ''
postInstall = oldAttrs.postInstall + ''
mv $out/sbin $out/bin
rm -rf $out/html
rm $out/conf/{fastcgi,scgi,uwsgi,win-utf,koi-win}*
Expand Down

0 comments on commit fbbd820

Please sign in to comment.