nginx: add possibility to compile reverse proxy with mail support

wip/yesman
Pascal Bach 7 years ago committed by Robin Gloster
parent 1d8412d17a
commit 6de00c1cb2
  1. 5
      pkgs/servers/http/nginx/generic.nix

@ -1,6 +1,7 @@
{ stdenv, fetchurl, fetchFromGitHub, openssl, zlib, pcre, libxml2, libxslt, expat
, gd, geoip
, withStream ? false
, withMail ? false
, modules ? []
, hardening ? true
, version, sha256, ...
@ -49,6 +50,10 @@ stdenv.mkDerivation {
"--with-stream_realip_module"
"--with-stream_ssl_module"
"--with-stream_ssl_preread_module"
] ++ optional withMail [
"--with-mail"
"--with-mail_ssl_module"
]
++ optional (gd != null) "--with-http_image_filter_module"
++ optional (elem stdenv.system (with platforms; linux ++ freebsd)) "--with-file-aio"
++ map (mod: "--add-module=${mod.src}") modules;

Loading…
Cancel
Save