summary refs log tree commit diff
path: root/pkgs/development/libraries/db4/db4-4.4.nix
blob: 7444439fc73d27c7b3e765ab338b47c4a11e4b3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{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://nixos.org/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")
  ];

  patches = [ ./cygwin-4.4.patch ];
}