Move all db4 packages to the default db5

This commit is contained in:
William A. Kennington III
2014-02-15 12:03:02 +01:00
committed by Bjørn Forsman
parent 99f5d2edb4
commit bdb842d5eb
37 changed files with 81 additions and 85 deletions
@@ -1,11 +1,11 @@
{ stdenv, fetchurl, makeWrapper, apr, expat, gnused
, sslSupport ? true, openssl
, bdbSupport ? false, db4
, bdbSupport ? false, db
, ldapSupport ? true, openldap
}:
assert sslSupport -> openssl != null;
assert bdbSupport -> db4 != null;
assert bdbSupport -> db != null;
assert ldapSupport -> openldap != null;
let
@@ -24,13 +24,13 @@ stdenv.mkDerivation rec {
--with-apr=${apr} --with-expat=${expat}
--with-crypto
${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"}
${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db4}"}
${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db}"}
${stdenv.lib.optionalString ldapSupport "--with-ldap"}
'';
propagatedBuildInputs = [ makeWrapper apr expat ]
++ optional sslSupport openssl
++ optional bdbSupport db4
++ optional bdbSupport db
++ optional ldapSupport openldap;
# Give apr1 access to sed for runtime invocations