mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
nginx: Add set-misc-nginx-module
This commit is contained in:
parent
5a3a3c5e8f
commit
c7c917dfff
1 changed files with 11 additions and 1 deletions
|
@ -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";
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue