nginx package: Allow adding arbitrary modules
This commit is contained in:
parent
ef5dafd66d
commit
7e021a0fd6
|
@ -8,6 +8,7 @@
|
||||||
, ngx_lua ? false
|
, ngx_lua ? false
|
||||||
, set_misc ? false
|
, set_misc ? false
|
||||||
, fluent ? false
|
, fluent ? false
|
||||||
|
, extraModules ? []
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
@ -133,7 +134,8 @@ stdenv.mkDerivation rec {
|
||||||
++ optional set_misc "--add-module=${set-misc-ext}"
|
++ optional set_misc "--add-module=${set-misc-ext}"
|
||||||
++ optionals (elem stdenv.system (with platforms; linux ++ freebsd))
|
++ optionals (elem stdenv.system (with platforms; linux ++ freebsd))
|
||||||
[ "--with-file-aio" "--with-aio_module" ]
|
[ "--with-file-aio" "--with-aio_module" ]
|
||||||
++ optional fluent "--add-module=${fluentd}";
|
++ optional fluent "--add-module=${fluentd}"
|
||||||
|
++ (map (m: "--add-module=${m}") extraModules);
|
||||||
|
|
||||||
|
|
||||||
additionalFlags = optionalString stdenv.isDarwin "-Wno-error=deprecated-declarations -Wno-error=conditional-uninitialized";
|
additionalFlags = optionalString stdenv.isDarwin "-Wno-error=deprecated-declarations -Wno-error=conditional-uninitialized";
|
||||||
|
|
Loading…
Reference in a new issue