2006-02-28 12:01:39 +00:00
|
|
|
{ stdenv, fetchurl, openssl, db4, expat, perl, zlib
|
2003-11-05 12:17:48 +00:00
|
|
|
, sslSupport, db4Support
|
|
|
|
}:
|
2003-12-21 21:25:38 +00:00
|
|
|
|
2004-03-27 15:47:48 +00:00
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
assert db4Support -> db4 != null;
|
|
|
|
assert expat != null && perl != null;
|
2003-12-21 21:25:38 +00:00
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2007-09-10 10:52:29 +01:00
|
|
|
name = "apache-httpd-2.2.6";
|
2003-11-05 12:17:48 +00:00
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-09-10 10:52:29 +01:00
|
|
|
url = http://archive.apache.org/dist/httpd/httpd-2.2.6.tar.bz2;
|
|
|
|
md5 = "203bea91715064f0c787f6499d33a377";
|
2003-11-05 16:28:26 +00:00
|
|
|
};
|
2003-11-05 12:17:48 +00:00
|
|
|
|
2004-03-27 15:47:48 +00:00
|
|
|
inherit sslSupport db4Support;
|
2003-12-21 21:25:38 +00:00
|
|
|
|
2006-02-28 12:01:39 +00:00
|
|
|
inherit perl expat zlib;
|
2004-03-27 15:47:48 +00:00
|
|
|
openssl = if sslSupport then openssl else null;
|
|
|
|
db4 = if db4Support then db4 else null;
|
2006-10-11 17:45:55 +01:00
|
|
|
|
2007-11-23 13:09:22 +00:00
|
|
|
# For now, disable detection of epoll to ensure that Apache still
|
|
|
|
# runs on Linux 2.4 kernels. Once we've dropped support for 2.4 in
|
|
|
|
# Nixpkgs, this can go. In general, it's a problem that APR
|
|
|
|
# detects characteristics of the build system's kernel to decide
|
|
|
|
# what to use at runtime, since it's impure.
|
|
|
|
apr_cv_epoll = "no";
|
|
|
|
|
2006-10-11 17:45:55 +01:00
|
|
|
meta = {
|
|
|
|
description = "Apache HTTPD, the world's most popular web server";
|
|
|
|
};
|
2003-11-05 12:17:48 +00:00
|
|
|
}
|