forked from mirrors/nixpkgs
nginx: add an option to build the stream module
This commit is contained in:
parent
942d2798c5
commit
4ac4f2dcd9
|
@ -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";
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue