Merge pull request #9997 from phunehehe/nginx-stream
add an option to build nginx's stream module
This commit is contained in:
commit
2a574cb526
@ -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;
|
||||||
|
|
||||||
@ -61,8 +62,8 @@ let
|
|||||||
lua-ext = fetchFromGitHub {
|
lua-ext = fetchFromGitHub {
|
||||||
owner = "openresty";
|
owner = "openresty";
|
||||||
repo = "lua-nginx-module";
|
repo = "lua-nginx-module";
|
||||||
rev = "v0.9.12";
|
rev = "v0.9.16";
|
||||||
sha256 = "0r07q1n3nvi7m3l8zk7nfk0z9kjhqknav61ys9lshh2ylsmz1lf4";
|
sha256 = "0dvdam228jhsrayb22ishljdkgib08bakh8ygn84sq0c2xbidzlp";
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
@ -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 New Issue
Block a user