2006-09-11 09:17:28 +00:00
|
|
|
{ stdenv, fetchurl, apr, expat
|
2006-09-11 09:47:58 +00:00
|
|
|
, bdbSupport ? false, db4 ? null
|
2011-05-20 17:00:49 +00:00
|
|
|
, ldapSupport ? !stdenv.isDarwin, openldap
|
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
|
|
|
|
2009-08-07 15:26:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-02-15 16:21:33 +00:00
|
|
|
name = "apr-util-1.4.1";
|
2008-02-05 11:41:49 +00:00
|
|
|
|
2006-09-11 09:17:28 +00:00
|
|
|
src = fetchurl {
|
2009-08-07 15:26:13 +00:00
|
|
|
url = "mirror://apache/apr/${name}.tar.bz2";
|
2012-02-15 16:21:33 +00:00
|
|
|
md5 = "52b31b33fb1aa16e65ddaefc76e41151";
|
2006-09-11 09:17:28 +00:00
|
|
|
};
|
2008-02-05 11:41:49 +00:00
|
|
|
|
|
|
|
configureFlags = ''
|
2006-09-11 09:17:28 +00:00
|
|
|
--with-apr=${apr} --with-expat=${expat}
|
2006-09-11 09:47:58 +00:00
|
|
|
${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
|
2011-04-09 14:24:25 +00:00
|
|
|
${if ldapSupport then "--with-ldap" else ""}
|
2008-02-05 11:41:49 +00:00
|
|
|
'';
|
2011-04-09 14:24:25 +00:00
|
|
|
|
2011-04-09 14:59:06 +00:00
|
|
|
propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap;
|
2008-02-05 11:41:49 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit bdbSupport;
|
2011-04-09 14:24:25 +00:00
|
|
|
inherit ldapSupport;
|
2008-02-05 11:41:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://apr.apache.org/;
|
|
|
|
description = "A companion library to APR, the Apache Portable Runtime";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|