forked from mirrors/nixpkgs
apr-util: enable SSL support by default and enable ldapSupport on Darwin, too
This commit is contained in:
parent
2199730941
commit
2659c3be45
|
@ -1,9 +1,12 @@
|
|||
{ stdenv, fetchurl, apr, expat
|
||||
, bdbSupport ? false, db4 ? null
|
||||
, ldapSupport ? !stdenv.isDarwin, openldap
|
||||
, sslSupport ? true, openssl
|
||||
, bdbSupport ? false, db4
|
||||
, ldapSupport ? true, openldap
|
||||
}:
|
||||
|
||||
assert sslSupport -> openssl != null;
|
||||
assert bdbSupport -> db4 != null;
|
||||
assert ldapSupport -> openldap != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "apr-util-1.4.1";
|
||||
|
@ -15,15 +18,16 @@ stdenv.mkDerivation rec {
|
|||
|
||||
configureFlags = ''
|
||||
--with-apr=${apr} --with-expat=${expat}
|
||||
${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
|
||||
${if ldapSupport then "--with-ldap" else ""}
|
||||
--with-crypto
|
||||
${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;
|
||||
|
||||
passthru = {
|
||||
inherit bdbSupport;
|
||||
inherit ldapSupport;
|
||||
inherit sslSupport bdbSupport ldapSupport;
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
@ -31,4 +35,3 @@ stdenv.mkDerivation rec {
|
|||
description = "A companion library to APR, the Apache Portable Runtime";
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue