lol

apr-util: refactor options

+11 -10
+11 -10
pkgs/development/libraries/apr-util/default.nix
··· 20 20 sha256 = "0bn81pfscy9yjvbmyx442svf43s6dhrdfcsnkpxz43fai5qk5kx6"; 21 21 }; 22 22 23 - patches = stdenv.lib.optionals stdenv.isFreeBSD [ ./include-static-dependencies.patch ]; 23 + patches = optional stdenv.isFreeBSD ./include-static-dependencies.patch; 24 24 25 - buildInputs = stdenv.lib.optionals stdenv.isFreeBSD [ autoreconfHook ]; 25 + buildInputs = optional stdenv.isFreeBSD autoreconfHook; 26 26 27 - configureFlags = '' 28 - --with-apr=${apr} --with-expat=${expat} 29 - ${optionalString (!stdenv.isCygwin) "--with-crypto"} 30 - ${stdenv.lib.optionalString sslSupport "--with-openssl=${openssl}"} 31 - ${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db}"} 32 - ${stdenv.lib.optionalString ldapSupport "--with-ldap=ldap"}${ 33 - optionalString stdenv.isCygwin "--without-pgsql --without-sqlite2 --without-sqlite3 --without-freetds --without-berkeley-db --without-crypto"} 34 - ''; 27 + configureFlags = [ "--with-apr=${apr}" "--with-expat=${expat}" ] 28 + ++ optional (!stdenv.isCygwin) "--with-crypto" 29 + ++ optional sslSupport "--with-openssl=${openssl}" 30 + ++ optional bdbSupport "--with-berkeley-db=${db}" 31 + ++ optional ldapSupport "--with-ldap=ldap" 32 + ++ optionals stdenv.isCygwin 33 + [ "--without-pgsql" "--without-sqlite2" "--without-sqlite3" 34 + "--without-freetds" "--without-berkeley-db" "--without-crypto" ] 35 + ; 35 36 36 37 propagatedBuildInputs = [ makeWrapper apr expat libiconv ] 37 38 ++ optional sslSupport openssl