2004-04-05 11:34:43 +02:00
|
|
|
{stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
|
|
|
|
|
2009-04-23 15:31:10 +02:00
|
|
|
stdenv.mkDerivation {
|
2006-02-01 15:53:25 +01:00
|
|
|
name = "db4-4.4.20";
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2003-11-05 13:17:48 +01:00
|
|
|
builder = ./builder.sh;
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2003-11-05 13:17:48 +01:00
|
|
|
src = fetchurl {
|
2007-12-18 23:56:12 +01:00
|
|
|
urls = [
|
|
|
|
http://download.oracle.com/berkeley-db/db-4.4.20.NC.tar.gz
|
2008-11-14 17:57:19 +01:00
|
|
|
http://nixos.org/tarballs/db-4.4.20.NC.tar.gz
|
2007-12-18 23:56:12 +01:00
|
|
|
];
|
2006-02-16 15:57:08 +01:00
|
|
|
md5 = "afd9243ea353bbaa04421488d3b37900";
|
2003-11-05 17:28:26 +01:00
|
|
|
};
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2004-04-05 11:34:43 +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")
|
2004-04-05 11:34:43 +02:00
|
|
|
];
|
2009-04-23 15:31:10 +02:00
|
|
|
|
|
|
|
patches = [ ./cygwin-4.4.patch ];
|
|
|
|
}
|