Add -Wno-error=deprecated-declarations for nginx, required to build on Darwin

wip/yesman
John Wiegley 10 years ago
parent 66bcd77f0e
commit 622aa834b7
  1. 4
      pkgs/servers/http/nginx/default.nix

@ -74,8 +74,10 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional syslog "--add-module=${syslog-ext}"
++ stdenv.lib.optional moreheaders "--add-module=${moreheaders-ext}";
additionalFlags = stdenv.lib.optionalString stdenv.isDarwin "-Wno-error=deprecated-declarations";
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libxml2}/include/libxml2 $additionalFlags"
'';
postInstall = ''

Loading…
Cancel
Save