diff options
author | Robin Gloster <mail@glob.in> | 2019-10-30 12:34:47 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-12-31 00:16:46 +0100 |
commit | 313da176d35efefbcf36b41ec348c38403581e83 (patch) | |
tree | cd7bba63111f2330601c18f0b2a33b65c3b9bbab /pkgs/servers/http | |
parent | f9f46dc327c7e659e84d558f1309e16e16e8245a (diff) | |
download | nixpkgs-313da176d35efefbcf36b41ec348c38403581e83.tar nixpkgs-313da176d35efefbcf36b41ec348c38403581e83.tar.gz nixpkgs-313da176d35efefbcf36b41ec348c38403581e83.tar.bz2 nixpkgs-313da176d35efefbcf36b41ec348c38403581e83.tar.lz nixpkgs-313da176d35efefbcf36b41ec348c38403581e83.tar.xz nixpkgs-313da176d35efefbcf36b41ec348c38403581e83.tar.zst nixpkgs-313da176d35efefbcf36b41ec348c38403581e83.zip |
treewide: NIX_*_FLAGS -> string
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r-- | pkgs/servers/http/openresty/default.nix | 2 | ||||
-rw-r--r-- | pkgs/servers/http/tengine/default.nix | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/pkgs/servers/http/openresty/default.nix b/pkgs/servers/http/openresty/default.nix index 53773302963..328db9ec986 100644 --- a/pkgs/servers/http/openresty/default.nix +++ b/pkgs/servers/http/openresty/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { buildInputs = [ openssl zlib pcre libxml2 libxslt gd geoip postgresql ]; nativeBuildInputs = [ perl ]; - NIX_CFLAGS_COMPILE = ["-I${libxml2.dev}/include/libxml2"]; + NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2"; preConfigure = '' patchShebangs . diff --git a/pkgs/servers/http/tengine/default.nix b/pkgs/servers/http/tengine/default.nix index 379a5c242f7..1467b1577f9 100644 --- a/pkgs/servers/http/tengine/default.nix +++ b/pkgs/servers/http/tengine/default.nix @@ -84,10 +84,8 @@ stdenv.mkDerivation rec { ++ optional (with stdenv.hostPlatform; isLinux || isFreeBSD) "--with-file-aio" ++ map (mod: "--add-module=${mod.src}") modules; - NIX_CFLAGS_COMPILE = [ - "-I${libxml2.dev}/include/libxml2" - "-Wno-error=implicit-fallthrough" - ] ++ optional stdenv.isDarwin "-Wno-error=deprecated-declarations"; + NIX_CFLAGS_COMPILE = "-I${libxml2.dev}/include/libxml2 -Wno-error=implicit-fallthrough" + + optionalString stdenv.isDarwin " -Wno-error=deprecated-declarations"; preConfigure = (concatMapStringsSep "\n" (mod: mod.preConfigure or "") modules); |