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