3
0
Fork 0
forked from mirrors/nixpkgs

nginx: add an option to build the stream module

This commit is contained in:
Hoang Xuan Phu 2015-09-22 13:09:11 +08:00
parent 942d2798c5
commit 4ac4f2dcd9

View file

@ -5,7 +5,8 @@
, syslog ? false , syslog ? false
, moreheaders ? false , moreheaders ? false
, echo ? false , echo ? false
, ngx_lua ? false }: , ngx_lua ? false
, withStream ? false }:
with stdenv.lib; with stdenv.lib;
@ -109,6 +110,7 @@ stdenv.mkDerivation rec {
++ optional moreheaders "--add-module=${moreheaders-ext}" ++ optional moreheaders "--add-module=${moreheaders-ext}"
++ optional echo "--add-module=${echo-ext}" ++ optional echo "--add-module=${echo-ext}"
++ optional ngx_lua "--add-module=${develkit-ext} --add-module=${lua-ext}" ++ optional ngx_lua "--add-module=${develkit-ext} --add-module=${lua-ext}"
++ optional withStream "--with-stream"
++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio"; ++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio";