about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2022-11-18 18:30:16 +0100
committerRaito Bezarius <masterancpp@gmail.com>2022-12-17 02:59:04 +0100
commit9105bfd039e6c19f689ae3a876c5b2978ed23836 (patch)
tree5621b2a06918aec1161cdf34e653a1d12a625ef0 /pkgs/servers
parent7e853f1d552a6327304339cd6c26d492d2def940 (diff)
nginx: expose ngx_http_slice_module through "withSlice"
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/http/nginx/generic.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix
index f3c4a31bc8551..1325832c96327 100644
--- a/pkgs/servers/http/nginx/generic.nix
+++ b/pkgs/servers/http/nginx/generic.nix
@@ -8,6 +8,7 @@ outer@{ lib, stdenv, fetchurl, fetchpatch, openssl, zlib, pcre, libxml2, libxslt
 , withStream ? true
 , withMail ? false
 , withPerl ? true
+, withSlice ? false
 , modules ? []
 , ...
 }:
@@ -100,7 +101,7 @@ stdenv.mkDerivation {
     "--with-http_perl_module"
     "--with-perl=${perl}/bin/perl"
     "--with-perl_modules_path=lib/perl5"
-  ]
+  ] ++ optional withSlice "--with-http_slice_module"
     ++ optional (gd != null) "--with-http_image_filter_module"
     ++ optional (geoip != null) "--with-http_geoip_module"
     ++ optional (withStream && geoip != null) "--with-stream_geoip_module"