git.iko.soy/typeable/nixpkgs
on master help sign in
cygwin: apr-util now also building on cygwin
dbdc9eeRok Garbas
pkgs/development/libraries/apr-util/default.nix+4−5
@@ -9,9 +9,7 @@ assert sslSupport -> openssl != null;
9assert bdbSupport -> db != null;
9assert bdbSupport -> db != null;
10assert ldapSupport -> openldap != null;
10assert ldapSupport -> openldap != null;
11
11
12−let
13− optional = stdenv.lib.optional;
12+with stdenv.lib;
14−in
15
13
16stdenv.mkDerivation rec {
14stdenv.mkDerivation rec {
17 name = "apr-util-1.5.4";
15 name = "apr-util-1.5.4";
@@ -23,10 +21,11 @@ stdenv.mkDerivation rec {
23
21
24 configureFlags = ''
22 configureFlags = ''
25 --with-apr=${apr} --with-expat=${expat}
23 --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"}
27 ${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"}
25 ${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"}
28 ${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db}"}
26 ${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"}
30 '';
29 '';
31
30
32 propagatedBuildInputs = [ makeWrapper apr expat libiconv ]
31 propagatedBuildInputs = [ makeWrapper apr expat libiconv ]