2006-09-11 10:17:28 +01:00
|
|
|
{ stdenv, fetchurl, apr, expat
|
2012-07-02 20:38:50 +01:00
|
|
|
, sslSupport ? true, openssl
|
|
|
|
, bdbSupport ? false, db4
|
2013-01-07 15:58:09 +00:00
|
|
|
, ldapSupport ? true, openldap
|
2006-09-11 10:17:28 +01:00
|
|
|
}:
|
|
|
|
|
2012-07-02 20:38:50 +01:00
|
|
|
assert sslSupport -> openssl != null;
|
2006-09-11 10:47:58 +01:00
|
|
|
assert bdbSupport -> db4 != null;
|
2012-07-02 20:38:50 +01:00
|
|
|
assert ldapSupport -> openldap != null;
|
2006-09-11 10:17:28 +01:00
|
|
|
|
2009-08-07 16:26:13 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-02-15 16:21:33 +00:00
|
|
|
name = "apr-util-1.4.1";
|
2012-07-02 20:38:50 +01:00
|
|
|
|
2006-09-11 10:17:28 +01:00
|
|
|
src = fetchurl {
|
2009-08-07 16:26:13 +01:00
|
|
|
url = "mirror://apache/apr/${name}.tar.bz2";
|
2012-02-15 16:21:33 +00:00
|
|
|
md5 = "52b31b33fb1aa16e65ddaefc76e41151";
|
2006-09-11 10:17:28 +01:00
|
|
|
};
|
2012-07-02 20:38:50 +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}
|
2012-07-02 20:38:50 +01:00
|
|
|
--with-crypto
|
|
|
|
${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"}
|
|
|
|
${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db4}"}
|
|
|
|
${stdenv.lib.optionalString ldapSupport "--with-ldap"}
|
2008-02-05 11:41:49 +00:00
|
|
|
'';
|
2011-04-09 15:24:25 +01:00
|
|
|
|
2011-04-09 15:59:06 +01:00
|
|
|
propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap;
|
2012-07-02 20:38:50 +01:00
|
|
|
|
2008-02-05 11:41:49 +00:00
|
|
|
passthru = {
|
2012-07-02 20:38:50 +01:00
|
|
|
inherit sslSupport bdbSupport 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";
|
|
|
|
};
|
|
|
|
}
|