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