apache-httpd: enable brotli support

Changed files
+4
pkgs
servers
http
apache-httpd
+4
pkgs/servers/http/apache-httpd/2.4.nix
···
, http2Support ? true, nghttp2
, ldapSupport ? true, openldap
, libxml2Support ? true, libxml2
+
, brotliSupport ? true, brotli ? null
, luaSupport ? false, lua5
}:
···
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;
···
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 ++
···
--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"}