1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

apache: cleanup, remove ? null, remove extra lib., remove let in, update homepage

This commit is contained in:
Sandro Jäckel 2021-10-05 17:31:40 +02:00
parent c130b07988
commit 4732298890
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -9,13 +9,6 @@
, luaSupport ? false, lua5
}:
let inherit (lib) optional;
in
assert sslSupport -> aprutil.sslSupport && openssl != null;
assert ldapSupport -> aprutil.ldapSupport && openldap != null;
assert http2Support -> nghttp2 != null;
stdenv.mkDerivation rec {
pname = "apache-httpd";
version = "2.4.50";
@ -29,15 +22,15 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "man" "doc" ];
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 ++
optional http2Support nghttp2 ++
optional stdenv.isDarwin libiconv;
buildInputs = [ perl ] ++
lib.optional brotliSupport brotli ++
lib.optional sslSupport openssl ++
lib.optional ldapSupport openldap ++ # there is no --with-ldap flag
lib.optional libxml2Support libxml2 ++
lib.optional http2Support nghttp2 ++
lib.optional stdenv.isDarwin libiconv;
prePatch = ''
postPatch = ''
sed -i config.layout -e "s|installbuilddir:.*|installbuilddir: $dev/share/build|"
sed -i support/apachectl.in -e 's|@LYNX_PATH@|${lynx}/bin/lynx|'
'';
@ -93,9 +86,9 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Apache HTTPD, the world's most popular web server";
homepage = "http://httpd.apache.org/";
homepage = "https://httpd.apache.org/";
license = licenses.asl20;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ lovek323 peti ];
};
}