git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #9997 from phunehehe/nginx-stream
2a574cbArseniy Seroka
pkgs/servers/http/nginx/unstable.nix+5−3
@@ -5,7 +5,8 @@
5, syslog ? false
5, syslog ? false
6, moreheaders ? false
6, moreheaders ? false
7, echo ? false
7, echo ? false
8−, ngx_lua ? false }:
8+, ngx_lua ? false
9+, withStream ? false }:
9
10
10with stdenv.lib;
11with stdenv.lib;
11
12
@@ -61,8 +62,8 @@ let
61 lua-ext = fetchFromGitHub {
62 lua-ext = fetchFromGitHub {
62 owner = "openresty";
63 owner = "openresty";
63 repo = "lua-nginx-module";
64 repo = "lua-nginx-module";
64− rev = "v0.9.12";
65+ rev = "v0.9.16";
65− sha256 = "0r07q1n3nvi7m3l8zk7nfk0z9kjhqknav61ys9lshh2ylsmz1lf4";
66+ sha256 = "0dvdam228jhsrayb22ishljdkgib08bakh8ygn84sq0c2xbidzlp";
66 };
67 };
67
68
68in
69in
@@ -109,6 +110,7 @@ stdenv.mkDerivation rec {
109 ++ optional moreheaders "--add-module=${moreheaders-ext}"
110 ++ optional moreheaders "--add-module=${moreheaders-ext}"
110 ++ optional echo "--add-module=${echo-ext}"
111 ++ optional echo "--add-module=${echo-ext}"
111 ++ optional ngx_lua "--add-module=${develkit-ext} --add-module=${lua-ext}"
112 ++ optional ngx_lua "--add-module=${develkit-ext} --add-module=${lua-ext}"
113+ ++ optional withStream "--with-stream"
112 ++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio";
114 ++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio";
113
115
114
116