Merge pull request #9997 from phunehehe/nginx-stream
add an option to build nginx's stream module
This commit is contained in:
commit
2a574cb526
1 changed files with 5 additions and 3 deletions
|
@ -5,7 +5,8 @@
|
|||
, syslog ? false
|
||||
, moreheaders ? false
|
||||
, echo ? false
|
||||
, ngx_lua ? false }:
|
||||
, ngx_lua ? false
|
||||
, withStream ? false }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
|
@ -61,8 +62,8 @@ let
|
|||
lua-ext = fetchFromGitHub {
|
||||
owner = "openresty";
|
||||
repo = "lua-nginx-module";
|
||||
rev = "v0.9.12";
|
||||
sha256 = "0r07q1n3nvi7m3l8zk7nfk0z9kjhqknav61ys9lshh2ylsmz1lf4";
|
||||
rev = "v0.9.16";
|
||||
sha256 = "0dvdam228jhsrayb22ishljdkgib08bakh8ygn84sq0c2xbidzlp";
|
||||
};
|
||||
|
||||
in
|
||||
|
@ -109,6 +110,7 @@ stdenv.mkDerivation rec {
|
|||
++ optional moreheaders "--add-module=${moreheaders-ext}"
|
||||
++ optional echo "--add-module=${echo-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";
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue