blob: 8a214a8f16ee83dcebbde816c38ed3a6f2a29da9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ stdenv, fetchurl, apr, expat
, bdbSupport ? false, db4 ? null
, ldapSupport ? !stdenv.isDarwin, openldap
}:
assert bdbSupport -> db4 != null;
stdenv.mkDerivation rec {
name = "apr-util-1.3.12";
src = fetchurl {
url = "mirror://apache/apr/${name}.tar.bz2";
md5 = "0f671b037ca62751a8a7005578085560";
};
configureFlags = ''
--with-apr=${apr} --with-expat=${expat}
${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
${if ldapSupport then "--with-ldap" else ""}
'';
propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap;
passthru = {
inherit bdbSupport;
inherit ldapSupport;
};
meta = {
homepage = http://apr.apache.org/;
description = "A companion library to APR, the Apache Portable Runtime";
};
}
|