From c7c917dfff04ff2acb298d324d73e3bf47e6732e Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Wed, 21 Jan 2015 12:38:34 +0100 Subject: [PATCH] nginx: Add set-misc-nginx-module --- pkgs/servers/http/nginx/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/http/nginx/default.nix b/pkgs/servers/http/nginx/default.nix index 5d6405f5fe78..ff21c4f508e8 100644 --- a/pkgs/servers/http/nginx/default.nix +++ b/pkgs/servers/http/nginx/default.nix @@ -5,7 +5,9 @@ , syslog ? false , moreheaders ? false , echo ? false -, ngx_lua ? false }: +, ngx_lua ? false +, set_misc ? false +}: with stdenv.lib; @@ -65,6 +67,13 @@ let sha256 = "0r07q1n3nvi7m3l8zk7nfk0z9kjhqknav61ys9lshh2ylsmz1lf4"; }; + set-misc-ext = fetchFromGitHub { + owner = "openresty"; + repo = "set-misc-nginx-module"; + rev = "v0.27"; + sha256 = "1bd1isacsiay73nc2jlp0wky32l42a3sjskvfa1082l12g0p1x39"; + }; + in stdenv.mkDerivation rec { @@ -109,6 +118,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 set_misc "--add-module=${set-misc-ext}" ++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio";