1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/development/libraries/apr-util/default.nix
Eelco Dolstra 528a471aa8 * apr-util updated to 1.3.10.
svn path=/nixpkgs/trunk/; revision=25000
2010-12-06 13:34:00 +00:00

30 lines
622 B
Nix

{ stdenv, fetchurl, apr, expat
, bdbSupport ? false, db4 ? null
}:
assert bdbSupport -> db4 != null;
stdenv.mkDerivation rec {
name = "apr-util-1.3.10";
src = fetchurl {
url = "mirror://apache/apr/${name}.tar.bz2";
sha256 = "1vhps080b0f9z6ibq7xqbhdrclb89min7xwvc2zzc5wf0x4w1h0s";
};
configureFlags = ''
--with-apr=${apr} --with-expat=${expat}
${if bdbSupport then "--with-berkeley-db=${db4}" else ""}
'';
passthru = {
inherit bdbSupport;
};
meta = {
homepage = http://apr.apache.org/;
description = "A companion library to APR, the Apache Portable Runtime";
};
}