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