mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
Add -Wno-error=deprecated-declarations for nginx, required to build on Darwin
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user