forked from mirrors/nixpkgs
10cb4a8cf2
Conflicts: pkgs/development/libraries/gtk+/2.x.nix pkgs/development/libraries/libsamplerate/default.nix pkgs/development/libraries/libsndfile/default.nix pkgs/misc/cups/default.nix pkgs/top-level/all-packages.nix
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ stdenv, fetchurl, apr, expat
|
|
, sslSupport ? true, openssl
|
|
, bdbSupport ? false, db4
|
|
, ldapSupport ? true, openldap
|
|
}:
|
|
|
|
assert sslSupport -> openssl != null;
|
|
assert bdbSupport -> db4 != null;
|
|
assert ldapSupport -> openldap != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "apr-util-1.5.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://apache/apr/${name}.tar.bz2";
|
|
md5 = "89c1348aa79e898d7c34a6206311c9c2";
|
|
};
|
|
|
|
configureFlags = ''
|
|
--with-apr=${apr} --with-expat=${expat}
|
|
--with-crypto
|
|
${stdenv.lib.optionalString sslSupport "--with-openssl"}
|
|
${stdenv.lib.optionalString bdbSupport "--with-berkeley-db=${db4}"}
|
|
${stdenv.lib.optionalString ldapSupport "--with-ldap"}
|
|
'';
|
|
|
|
buildInputs = stdenv.lib.optional sslSupport openssl;
|
|
|
|
propagatedBuildInputs = stdenv.lib.optional ldapSupport openldap;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru = {
|
|
inherit sslSupport bdbSupport ldapSupport;
|
|
};
|
|
|
|
meta = {
|
|
homepage = http://apr.apache.org/;
|
|
description = "A companion library to APR, the Apache Portable Runtime";
|
|
};
|
|
}
|