From 622aa834b72d4e8c10b8d61baec60706af26f170 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 5 May 2014 02:18:47 -0500 Subject: [PATCH] Add -Wno-error=deprecated-declarations for nginx, required to build on Darwin --- pkgs/servers/http/nginx/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/http/nginx/default.nix b/pkgs/servers/http/nginx/default.nix index 3dc38575136..6f0b3ccf41c 100644 --- a/pkgs/servers/http/nginx/default.nix +++ b/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 = ''