mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
nginx: Add set-misc-nginx-module
This commit is contained in:
parent
5a3a3c5e8f
commit
c7c917dfff
@ -5,7 +5,9 @@
|
|||||||
, syslog ? false
|
, syslog ? false
|
||||||
, moreheaders ? false
|
, moreheaders ? false
|
||||||
, echo ? false
|
, echo ? false
|
||||||
, ngx_lua ? false }:
|
, ngx_lua ? false
|
||||||
|
, set_misc ? false
|
||||||
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -65,6 +67,13 @@ let
|
|||||||
sha256 = "0r07q1n3nvi7m3l8zk7nfk0z9kjhqknav61ys9lshh2ylsmz1lf4";
|
sha256 = "0r07q1n3nvi7m3l8zk7nfk0z9kjhqknav61ys9lshh2ylsmz1lf4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
set-misc-ext = fetchFromGitHub {
|
||||||
|
owner = "openresty";
|
||||||
|
repo = "set-misc-nginx-module";
|
||||||
|
rev = "v0.27";
|
||||||
|
sha256 = "1bd1isacsiay73nc2jlp0wky32l42a3sjskvfa1082l12g0p1x39";
|
||||||
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -109,6 +118,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 set_misc "--add-module=${set-misc-ext}"
|
||||||
++ 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