2006-09-11 11:17:28 +02:00
|
|
|
{ stdenv, fetchurl, apr, expat
|
2012-07-02 21:38:50 +02:00
|
|
|
, sslSupport ? true, openssl
|
|
|
|
, bdbSupport ? false, db4
|
2013-01-07 16:58:09 +01:00
|
|
|
, ldapSupport ? true, openldap
|
2006-09-11 11:17:28 +02:00
|
|
|
}:
|
|
|
|
|
2012-07-02 21:38:50 +02:00
|
|
|
assert sslSupport -> openssl != null;
|
2006-09-11 11:47:58 +02:00
|
|
|
assert bdbSupport -> db4 != null;
|
2012-07-02 21:38:50 +02:00
|
|
|
assert ldapSupport -> openldap != null;
|
2006-09-11 11:17:28 +02:00
|
|
|
|
2009-08-07 17:26:13 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-09 09:48:41 +01:00
|
|
|
name = "apr-util-1.5.3";
|
2012-07-02 21:38:50 +02: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";
|
2013-12-09 09:48:41 +01:00
|
|
|
sha256 = "0s1rpqjy5xr03k9s4xrsm5wvhj5286vlkf6jvqayw99yy5sb3vbq";
|
2006-09-11 11:17:28 +02:00
|
|
|
};
|
2012-07-02 21:38:50 +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}
|
2012-07-02 21:38:50 +02: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 12:41:49 +01:00
|
|
|
'';
|
2011-04-09 16:24:25 +02:00
|
|
|
|
2011-04-09 16:59:06 +02:00
|
|
|
propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap;
|
2012-07-02 21:38:50 +02:00
|
|
|
|
2013-01-14 14:38:00 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2008-02-05 12:41:49 +01:00
|
|
|
passthru = {
|
2012-07-02 21:38:50 +02:00
|
|
|
inherit sslSupport bdbSupport 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";
|
|
|
|
};
|
|
|
|
}
|