2006-09-11 11:17:28 +02:00
|
|
|
{ stdenv, fetchurl, apr, expat
|
2006-09-11 11:47:58 +02:00
|
|
|
, bdbSupport ? false, db4 ? null
|
2011-04-09 16:24:25 +02:00
|
|
|
, ldapSupport ? true, openldap
|
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
|
|
|
|
2009-08-07 17:26:13 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2010-12-06 14:34:00 +01:00
|
|
|
name = "apr-util-1.3.10";
|
2008-02-05 12:41:49 +01:00
|
|
|
|
2006-09-11 11:17:28 +02:00
|
|
|
src = fetchurl {
|
2009-08-07 17:26:13 +02:00
|
|
|
url = "mirror://apache/apr/${name}.tar.bz2";
|
2010-12-06 14:34:00 +01:00
|
|
|
sha256 = "1vhps080b0f9z6ibq7xqbhdrclb89min7xwvc2zzc5wf0x4w1h0s";
|
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 ""}
|
2011-04-09 16:24:25 +02:00
|
|
|
${if ldapSupport then "--with-ldap" else ""}
|
2008-02-05 12:41:49 +01:00
|
|
|
'';
|
2011-04-09 16:24:25 +02:00
|
|
|
|
|
|
|
buildInputs = if ldapSupport then [ openldap ] else [];
|
2008-02-05 12:41:49 +01:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit bdbSupport;
|
2011-04-09 16:24:25 +02:00
|
|
|
inherit ldapSupport;
|
2008-02-05 12:41:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://apr.apache.org/;
|
|
|
|
description = "A companion library to APR, the Apache Portable Runtime";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|