apache-httpd: enable brotli support

This commit is contained in:
Eli Flanagan 2018-01-05 14:53:32 -05:00 committed by Robin Gloster
parent 08cde7d69f
commit f95d92ee96

View File

@ -4,6 +4,7 @@
, http2Support ? true, nghttp2
, ldapSupport ? true, openldap
, libxml2Support ? true, libxml2
, brotliSupport ? true, brotli ? null
, luaSupport ? false, lua5
}:
@ -11,6 +12,7 @@ let optional = stdenv.lib.optional;
optionalString = stdenv.lib.optionalString;
in
assert brotliSupport -> brotli != null;
assert sslSupport -> aprutil.sslSupport && openssl != null;
assert ldapSupport -> aprutil.ldapSupport && openldap != null;
assert http2Support -> nghttp2 != null;
@ -29,6 +31,7 @@ stdenv.mkDerivation rec {
setOutputFlags = false; # it would move $out/modules, etc.
buildInputs = [perl] ++
optional brotliSupport brotli ++
optional sslSupport openssl ++
optional ldapSupport openldap ++ # there is no --with-ldap flag
optional libxml2Support libxml2 ++
@ -58,6 +61,7 @@ stdenv.mkDerivation rec {
--enable-cern-meta
--enable-imagemap
--enable-cgi
${optionalString brotliSupport "--enable-brotli --with-brotli=${brotli}"}
${optionalString proxySupport "--enable-proxy"}
${optionalString sslSupport "--enable-ssl"}
${optionalString http2Support "--enable-http2 --with-nghttp2"}