apr-util: enable SSL support by default and enable ldapSupport on Darwin, too
This commit is contained in:
parent
2199730941
commit
2659c3be45
@ -1,29 +1,33 @@
|
|||||||
{ stdenv, fetchurl, apr, expat
|
{ stdenv, fetchurl, apr, expat
|
||||||
, bdbSupport ? false, db4 ? null
|
, sslSupport ? true, openssl
|
||||||
, ldapSupport ? !stdenv.isDarwin, openldap
|
, bdbSupport ? false, db4
|
||||||
|
, ldapSupport ? true, openldap
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert sslSupport -> openssl != null;
|
||||||
assert bdbSupport -> db4 != null;
|
assert bdbSupport -> db4 != null;
|
||||||
|
assert ldapSupport -> openldap != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "apr-util-1.4.1";
|
name = "apr-util-1.4.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://apache/apr/${name}.tar.bz2";
|
url = "mirror://apache/apr/${name}.tar.bz2";
|
||||||
md5 = "52b31b33fb1aa16e65ddaefc76e41151";
|
md5 = "52b31b33fb1aa16e65ddaefc76e41151";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = ''
|
||||||
--with-apr=${apr} --with-expat=${expat}
|
--with-apr=${apr} --with-expat=${expat}
|
||||||
${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
|
--with-crypto
|
||||||
${if ldapSupport then "--with-ldap" else ""}
|
${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"}
|
||||||
|
${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db4}"}
|
||||||
|
${stdenv.lib.optionalString ldapSupport "--with-ldap"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap;
|
propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit bdbSupport;
|
inherit sslSupport bdbSupport ldapSupport;
|
||||||
inherit ldapSupport;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -31,4 +35,3 @@ stdenv.mkDerivation rec {
|
|||||||
description = "A companion library to APR, the Apache Portable Runtime";
|
description = "A companion library to APR, the Apache Portable Runtime";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user