nixpkgs-suyu/pkgs/servers/http/apache-httpd/default.nix
Eelco Dolstra 223bce6491 * Latest httpd, apr, apr-util.
svn path=/nixpkgs/trunk/; revision=16615
2009-08-07 15:26:13 +00:00

44 lines
996 B
Nix

{ stdenv, fetchurl, openssl, perl, zlib
, sslSupport, proxySupport ? true
, apr, aprutil, pcre
}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation rec {
version = "2.2.12";
name = "apache-httpd-${version}";
src = fetchurl {
url = "mirror://apache/httpd/httpd-${version}.tar.bz2";
md5 = "7d30c7195883c26a6eaf59a85b42c6ef";
};
#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/;
};
}