nixpkgs-suyu/pkgs/development/libraries/db4/db4-4.4.nix
Yury G. Kudryashov a7703662a4 Merged with trunk
svn path=/nixpkgs/branches/stdenv-updates/; revision=10145
2008-01-15 00:55:21 +00:00

17 lines
593 B
Nix

{stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
stdenv.mkDerivation ({
name = "db4-4.4.20";
builder = ./builder.sh;
src = fetchurl {
urls = [
http://download.oracle.com/berkeley-db/db-4.4.20.NC.tar.gz
http://nix.cs.uu.nl/dist/tarballs/db-4.4.20.NC.tar.gz
];
md5 = "afd9243ea353bbaa04421488d3b37900";
};
configureFlags = [
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
(if compat185 then "--enable-compat185" else "--disable-compat185")
];
} // (if stdenv.system == "i686-cygwin" then {patches = [./cygwin-4.4.patch];} else {}))