about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorRyan Lahfa <masterancpp@gmail.com>2022-12-23 00:47:30 +0100
committerGitHub <noreply@github.com>2022-12-23 00:47:30 +0100
commit0ed43cb857f59abfffebda87d8dbfe9ccb4b0256 (patch)
tree275f0fb6622c2df941e1f38b61dcb06060faa9d5 /pkgs/servers
parente2e8dfcf44bfac85b9a61a8a21a10244c307e23f (diff)
parent9105bfd039e6c19f689ae3a876c5b2978ed23836 (diff)
Merge pull request #201789 from RaitoBezarius/nginx-with-slice
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 5bc2cbca3bd7e..06fa12725674e 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 ? []
 , ...
 }:
@@ -109,7 +110,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"