cygwin: turn off ldap and crypt for apr-util to make it build

This commit is contained in:
Rok Garbas 2015-06-05 15:50:14 +02:00
parent d5087119c6
commit 7c67c350a3

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl, makeWrapper, apr, expat, gnused
, sslSupport ? true, openssl
, bdbSupport ? false, db
, ldapSupport ? true, openldap
, ldapSupport ? !stdenv.isCygwin, openldap
, libiconv
}:
@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
configureFlags = ''
--with-apr=${apr} --with-expat=${expat}
--with-crypto
${if !stdenv.isCygwin then "--with-crypto" else "--without-pgsql --without-sqlite2 --without-sqlite3 --without-freetds --without-berkeley-db --without-crypto"}
${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"}
${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db}"}
${stdenv.lib.optionalString ldapSupport "--with-ldap"}