nginx: add possibility to compile reverse proxy with mail support
This commit is contained in:
parent
1d8412d17a
commit
6de00c1cb2
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt, expat
|
{ stdenv, fetchurl, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt, expat
|
||||||
, gd, geoip
|
, gd, geoip
|
||||||
, withStream ? false
|
, withStream ? false
|
||||||
|
, withMail ? false
|
||||||
, modules ? []
|
, modules ? []
|
||||||
, hardening ? true
|
, hardening ? true
|
||||||
, version, sha256, ...
|
, version, sha256, ...
|
||||||
@ -49,6 +50,10 @@ stdenv.mkDerivation {
|
|||||||
"--with-stream_realip_module"
|
"--with-stream_realip_module"
|
||||||
"--with-stream_ssl_module"
|
"--with-stream_ssl_module"
|
||||||
"--with-stream_ssl_preread_module"
|
"--with-stream_ssl_preread_module"
|
||||||
|
] ++ optional withMail [
|
||||||
|
"--with-mail"
|
||||||
|
"--with-mail_ssl_module"
|
||||||
|
]
|
||||||
++ optional (gd != null) "--with-http_image_filter_module"
|
++ optional (gd != null) "--with-http_image_filter_module"
|
||||||
++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio"
|
++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio"
|
||||||
++ map (mod: "--add-module=${mod.src}") modules;
|
++ map (mod: "--add-module=${mod.src}") modules;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user