2006-09-11 11:17:28 +02:00
|
|
|
{ stdenv, fetchurl, apr, expat
|
2006-09-11 11:47:58 +02:00
|
|
|
, bdbSupport ? false, db4 ? null
|
2006-09-11 11:17:28 +02:00
|
|
|
}:
|
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
assert bdbSupport -> db4 != null;
|
2006-09-11 11:17:28 +02:00
|
|
|
|
2006-09-11 11:47:58 +02:00
|
|
|
(stdenv.mkDerivation {
|
2006-09-11 11:17:28 +02:00
|
|
|
name = "apr-util-1.2.7";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://archive.apache.org/dist/apr/apr-util-1.2.7.tar.bz2;
|
|
|
|
md5 = "a4c527f08ae2298e62a88472291bf066";
|
|
|
|
};
|
|
|
|
configureFlags = "
|
|
|
|
--with-apr=${apr} --with-expat=${expat}
|
2006-09-11 11:47:58 +02:00
|
|
|
${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
|
2006-09-11 11:17:28 +02:00
|
|
|
";
|
2006-09-11 11:47:58 +02:00
|
|
|
}) // {inherit bdbSupport;}
|