@@ -9,9 +9,7 @@ assert sslSupport -> openssl != null;
99assert bdbSupport -> db != null;
1010assert ldapSupport -> openldap != null;
1111
12−let
13− optional = stdenv.lib.optional;
14−in
12+with stdenv.lib;
1513
1614stdenv.mkDerivation rec {
1715 name = "apr-util-1.5.4";
@@ -23,10 +21,11 @@ stdenv.mkDerivation rec {
2321
2422 configureFlags = ''
2523 --with-apr=${apr} --with-expat=${expat}
26− ${if !stdenv.isCygwin then "--with-crypto" else "--without-pgsql --without-sqlite2 --without-sqlite3 --without-freetds --without-berkeley-db --without-crypto"}
24+ ${optionalString (!stdenv.isCygwin) "--with-crypto"}
2725 ${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"}
2826 ${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db}"}
29− ${stdenv.lib.optionalString ldapSupport "--with-ldap"}
27+ ${stdenv.lib.optionalString ldapSupport "--with-ldap"}${
28+ optionalString stdenv.isCygwin "--without-pgsql --without-sqlite2 --without-sqlite3 --without-freetds --without-berkeley-db --without-crypto"}
3029 '';
3130
3231 propagatedBuildInputs = [ makeWrapper apr expat libiconv ]