1 { lib, stdenv, fetchurl
6 # Options from inherited versions
9 , license ? lib.licenses.sleepycat
13 stdenv.mkDerivation (rec {
14 name = "db-${version}";
17 url = "https://download.oracle.com/berkeley-db/${name}.tar.gz";
21 patches = extraPatches;
23 outputs = [ "bin" "out" "dev" ];
27 (if cxxSupport then "--enable-cxx" else "--disable-cxx")
28 (if compat185 then "--enable-compat185" else "--disable-compat185")
30 ++ lib.optional dbmSupport "--enable-dbm"
31 ++ lib.optional stdenv.isFreeBSD "--with-pic";
35 configureScript=../dist/configure
42 enableParallelBuilding = true;
47 make examples_c examples_cxx
51 homepage = "http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/index.html";
52 description = "Berkeley DB";
54 platforms = platforms.unix;