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.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user