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
|
|
|
|
2008-02-05 12:41:49 +01:00
|
|
|
stdenv.mkDerivation {
|
2008-10-06 15:38:45 +02:00
|
|
|
name = "apr-util-1.3.4";
|
2008-02-05 12:41:49 +01:00
|
|
|
|
2006-09-11 11:17:28 +02:00
|
|
|
src = fetchurl {
|
2008-10-06 15:38:45 +02:00
|
|
|
url = mirror://apache/apr/apr-util-1.3.4.tar.bz2;
|
|
|
|
sha256 = "1kin1yh42sk7hw81x3aynjf2g0k07n6707426c2mi6fh6lr0lys4";
|
2006-09-11 11:17:28 +02:00
|
|
|
};
|
2008-02-05 12:41:49 +01:00
|
|
|
|
|
|
|
configureFlags = ''
|
2006-09-11 11:17:28 +02:00
|
|
|
--with-apr=${apr} --with-expat=${expat}
|
2006-09-11 11:47:58 +02:00
|
|
|
${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
|
2008-02-05 12:41:49 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit bdbSupport;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://apr.apache.org/;
|
|
|
|
description = "A companion library to APR, the Apache Portable Runtime";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|