apr-util: refactor options

This commit is contained in:
Vladimír Čunát 2016-01-05 09:42:56 +01:00
parent 9b091e8a0c
commit aa4562596f
1 changed files with 11 additions and 10 deletions

View File

@ -20,18 +20,19 @@ stdenv.mkDerivation rec {
sha256 = "0bn81pfscy9yjvbmyx442svf43s6dhrdfcsnkpxz43fai5qk5kx6"; sha256 = "0bn81pfscy9yjvbmyx442svf43s6dhrdfcsnkpxz43fai5qk5kx6";
}; };
patches = stdenv.lib.optionals stdenv.isFreeBSD [ ./include-static-dependencies.patch ]; patches = optional stdenv.isFreeBSD ./include-static-dependencies.patch;
buildInputs = stdenv.lib.optionals stdenv.isFreeBSD [ autoreconfHook ]; buildInputs = optional stdenv.isFreeBSD autoreconfHook;
configureFlags = '' configureFlags = [ "--with-apr=${apr}" "--with-expat=${expat}" ]
--with-apr=${apr} --with-expat=${expat} ++ optional (!stdenv.isCygwin) "--with-crypto"
${optionalString (!stdenv.isCygwin) "--with-crypto"} ++ optional sslSupport "--with-openssl=${openssl}"
${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"} ++ optional bdbSupport "--with-berkeley-db=${db}"
${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db}"} ++ optional ldapSupport "--with-ldap=ldap"
${stdenv.lib.optionalString ldapSupport "--with-ldap=ldap"}${ ++ optionals stdenv.isCygwin
optionalString stdenv.isCygwin "--without-pgsql --without-sqlite2 --without-sqlite3 --without-freetds --without-berkeley-db --without-crypto"} [ "--without-pgsql" "--without-sqlite2" "--without-sqlite3"
''; "--without-freetds" "--without-berkeley-db" "--without-crypto" ]
;
propagatedBuildInputs = [ makeWrapper apr expat libiconv ] propagatedBuildInputs = [ makeWrapper apr expat libiconv ]
++ optional sslSupport openssl ++ optional sslSupport openssl