diff options
author | Jamie McClymont <jamie@kwiius.com> | 2020-06-20 14:22:34 +1200 |
---|---|---|
committer | Jamie McClymont <jamie@kwiius.com> | 2020-06-20 14:22:34 +1200 |
commit | dca001e92312a4bc837f2a087c24fbea4069d8ca (patch) | |
tree | 9295bf98c7fe95f46011a6cfd8bdc8fe86eb66aa /pkgs/servers/http/nginx/generic.nix | |
parent | 44007dec5c96dbfa3aa2aa5850a4c05804eae38e (diff) |
nginx: change how the perl module is configured
Previously, http_perl_module was disabled by overriding perl=null -- this means it is impossible to disable http_perl_module in openresty, since openresty requires perl for its configure scripts.
Diffstat (limited to 'pkgs/servers/http/nginx/generic.nix')
-rw-r--r-- | pkgs/servers/http/nginx/generic.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 80bc1458ad7ab..6ec5b0a785109 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -4,6 +4,7 @@ , withDebug ? false , withStream ? true , withMail ? false +, withPerl ? true , modules ? [] , ... }: @@ -87,7 +88,7 @@ stdenv.mkDerivation { ] ++ optionals withMail [ "--with-mail" "--with-mail_ssl_module" - ] ++ optional (perl != null) [ + ] ++ optionals withPerl [ "--with-http_perl_module" "--with-perl=${perl}/bin/perl" "--with-perl_modules_path=lib/perl5" |