1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/development/libraries/db4/default.nix
Eelco Dolstra 26832cd4ec * Patch for BDB on Cygwin.
svn path=/nixpkgs/trunk/; revision=5454
2006-06-15 12:51:15 +00:00

15 lines
507 B
Nix

{stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
stdenv.mkDerivation ({
name = "db4-4.4.20";
builder = ./builder.sh;
src = fetchurl {
url = http://downloads.sleepycat.com/db-4.4.20.NC.tar.gz;
md5 = "afd9243ea353bbaa04421488d3b37900";
};
configureFlags = [
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
(if cxxSupport then "--enable-compat185" else "--disable-compat185")
];
} // (if stdenv.system == "i686-cygwin" then {patches = [./cygwin.patch];} else {}))