diff options
author | tekeri <47343275+tekeri@users.noreply.github.com> | 2019-11-28 02:08:56 +0900 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2019-11-27 17:08:56 +0000 |
commit | a5f26644d4bb09c6ed82c9ddc0cbdb4e44dae964 (patch) | |
tree | 7a21042b50a5134c05004c29043547254f1806b0 /pkgs/servers/http/nginx | |
parent | 177b1bcea1e1a94f4d228c2e8da67a3c93384bcd (diff) | |
download | nixlib-a5f26644d4bb09c6ed82c9ddc0cbdb4e44dae964.tar nixlib-a5f26644d4bb09c6ed82c9ddc0cbdb4e44dae964.tar.gz nixlib-a5f26644d4bb09c6ed82c9ddc0cbdb4e44dae964.tar.bz2 nixlib-a5f26644d4bb09c6ed82c9ddc0cbdb4e44dae964.tar.lz nixlib-a5f26644d4bb09c6ed82c9ddc0cbdb4e44dae964.tar.xz nixlib-a5f26644d4bb09c6ed82c9ddc0cbdb4e44dae964.tar.zst nixlib-a5f26644d4bb09c6ed82c9ddc0cbdb4e44dae964.zip |
Add nginx perl modules (#73198)
* nginx: enable perl_module if perl is given * nginx: move `perl = null` to toplevel
Diffstat (limited to 'pkgs/servers/http/nginx')
-rw-r--r-- | pkgs/servers/http/nginx/generic.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index 3edbed22b6b6..b0a4a84b2fa2 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, fetchpatch, openssl, zlib, pcre, libxml2, libxslt -, substituteAll, gd, geoip +, substituteAll, gd, geoip, perl , withDebug ? false , withStream ? true , withMail ? false @@ -29,7 +29,7 @@ stdenv.mkDerivation { inherit sha256; }; - buildInputs = [ openssl zlib pcre libxml2 libxslt gd geoip ] + buildInputs = [ openssl zlib pcre libxml2 libxslt gd geoip perl ] ++ mapModules "inputs"; configureFlags = [ @@ -52,8 +52,6 @@ stdenv.mkDerivation { "--with-http_stub_status_module" "--with-threads" "--with-pcre-jit" - # Install destination problems - # "--with-http_perl_module" ] ++ optional withDebug [ "--with-debug" ] ++ optional withStream [ @@ -65,6 +63,10 @@ stdenv.mkDerivation { ] ++ optional withMail [ "--with-mail" "--with-mail_ssl_module" + ] ++ optional (perl != null) [ + "--with-http_perl_module" + "--with-perl=${perl}/bin/perl" + "--with-perl_modules_path=lib/perl5" ] ++ optional (gd != null) "--with-http_image_filter_module" ++ optional (with stdenv.hostPlatform; isLinux || isFreeBSD) "--with-file-aio" |