2004-04-05 13:34:43 +04:00
|
|
|
{stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
|
|
|
|
|
2009-04-23 17:31:10 +04:00
|
|
|
stdenv.mkDerivation {
|
2006-02-01 17:53:25 +03:00
|
|
|
name = "db4-4.4.20";
|
2009-04-23 17:31:10 +04:00
|
|
|
|
2003-11-05 15:17:48 +03:00
|
|
|
builder = ./builder.sh;
|
2009-04-23 17:31:10 +04:00
|
|
|
|
2003-11-05 15:17:48 +03:00
|
|
|
src = fetchurl {
|
2007-12-19 01:56:12 +03:00
|
|
|
urls = [
|
|
|
|
http://download.oracle.com/berkeley-db/db-4.4.20.NC.tar.gz
|
2013-06-25 16:05:48 +04:00
|
|
|
http://tarballs.nixos.org/db-4.4.20.NC.tar.gz
|
2007-12-19 01:56:12 +03:00
|
|
|
];
|
2006-02-16 17:57:08 +03:00
|
|
|
md5 = "afd9243ea353bbaa04421488d3b37900";
|
2003-11-05 19:28:26 +03:00
|
|
|
};
|
2009-04-23 17:31:10 +04:00
|
|
|
|
2004-04-05 13:34:43 +04:00
|
|
|
configureFlags = [
|
|
|
|
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
|
2007-03-21 22:25:58 +03:00
|
|
|
(if compat185 then "--enable-compat185" else "--disable-compat185")
|
2004-04-05 13:34:43 +04:00
|
|
|
];
|
2009-04-23 17:31:10 +04:00
|
|
|
|
|
|
|
patches = [ ./cygwin-4.4.patch ];
|
|
|
|
}
|