From 2659c3be4571a99c576da22d057e1f86a8db4fdf Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 2 Jul 2012 21:38:50 +0200 Subject: [PATCH] apr-util: enable SSL support by default and enable ldapSupport on Darwin, too --- .../libraries/apr-util/default.nix | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/apr-util/default.nix b/pkgs/development/libraries/apr-util/default.nix index ce6337b3b6ad..ad02f9b84cce 100644 --- a/pkgs/development/libraries/apr-util/default.nix +++ b/pkgs/development/libraries/apr-util/default.nix @@ -1,29 +1,33 @@ { 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"; - + src = fetchurl { url = "mirror://apache/apr/${name}.tar.bz2"; md5 = "52b31b33fb1aa16e65ddaefc76e41151"; }; - + 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"; }; } -