From 6de00c1cb2377437228e726bfe7f7018f283f45a Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Sat, 19 Aug 2017 23:36:37 +0200 Subject: [PATCH] nginx: add possibility to compile reverse proxy with mail support --- pkgs/servers/http/nginx/generic.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 41623c600f60..0f467efc26a5 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/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;