2006-10-01 16:16:15 +02:00
|
|
|
{stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
|
|
|
|
|
2006-10-13 14:58:13 +02:00
|
|
|
stdenv.mkDerivation {
|
2006-10-01 16:16:15 +02:00
|
|
|
name = "db4-4.5.20";
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2006-10-01 16:16:15 +02:00
|
|
|
builder = ./builder.sh;
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2006-10-01 16:16:15 +02:00
|
|
|
src = fetchurl {
|
2006-10-13 17:54:29 +02:00
|
|
|
url = http://download-east.oracle.com/berkeley-db/db-4.5.20.tar.gz;
|
|
|
|
md5 = "b0f1c777708cb8e9d37fb47e7ed3312d";
|
2006-10-01 16:16:15 +02:00
|
|
|
};
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2006-10-01 16:16:15 +02:00
|
|
|
configureFlags = [
|
|
|
|
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
|
2007-03-21 20:25:58 +01:00
|
|
|
(if compat185 then "--enable-compat185" else "--disable-compat185")
|
2006-10-01 16:16:15 +02:00
|
|
|
];
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2007-05-16 21:30:57 +02:00
|
|
|
patches = [./cygwin-4.5.patch ./register-race-fix.patch];
|
2006-10-13 14:58:13 +02:00
|
|
|
}
|