1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 03:25:02 +00:00
nixpkgs/pkgs/servers/http/apache-httpd/default.nix
Eelco Dolstra 9ba80ff346 * Apache 2.2.11.
svn path=/nixpkgs/trunk/; revision=13658
2008-12-19 12:52:55 +00:00

44 lines
960 B
Nix

{ stdenv, fetchurl, openssl, perl, zlib
, sslSupport, proxySupport ? true
, apr, aprutil, pcre
}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation {
name = "apache-httpd-2.2.11";
src = fetchurl {
url = mirror://apache/httpd/httpd-2.2.11.tar.bz2;
md5 = "3e98bcb14a7122c274d62419566431bb";
};
#inherit sslSupport;
buildInputs = [perl apr aprutil pcre] ++
stdenv.lib.optional sslSupport openssl;
configureFlags = ''
--with-z=${zlib}
--with-pcre=${pcre}
--enable-mods-shared=all
--enable-authn-alias
${if proxySupport then "--enable-proxy" else ""}
${if sslSupport then "--enable-ssl --with-ssl=${openssl}" else ""}
'';
postInstall = ''
echo "removing manual"
rm -rf $out/manual
'';
passthru = {
inherit apr aprutil sslSupport proxySupport;
};
meta = {
description = "Apache HTTPD, the world's most popular web server";
homepage = http://httpd.apache.org/;
};
}