1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/development/libraries/apr-util/default.nix
Eelco Dolstra 223bce6491 * Latest httpd, apr, apr-util.
svn path=/nixpkgs/trunk/; revision=16615
2009-08-07 15:26:13 +00:00

30 lines
621 B
Nix

{ stdenv, fetchurl, apr, expat
, bdbSupport ? false, db4 ? null
}:
assert bdbSupport -> db4 != null;
stdenv.mkDerivation rec {
name = "apr-util-1.3.9";
src = fetchurl {
url = "mirror://apache/apr/${name}.tar.bz2";
sha256 = "10zcy1an5xkjx8nflirvm2a8rnp9psckws6r7xr5wq6ffxnafhc7";
};
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";
};
}