fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl
2, cxxSupport ? true
3, compat185 ? true
4, dbmSupport ? false
5
6# Options from inherited versions
7, version, sha256
8, patchSrc ? "src", extraPatches ? [ ]
9, license ? stdenv.lib.licenses.sleepycat
10, drvArgs ? {}
11}:
12
13stdenv.mkDerivation (rec {
14 name = "db-${version}";
15
16 src = fetchurl {
17 url = "http://download.oracle.com/berkeley-db/${name}.tar.gz";
18 sha256 = sha256;
19 };
20
21 patches = extraPatches;
22
23 configureFlags =
24 [
25 (if cxxSupport then "--enable-cxx" else "--disable-cxx")
26 (if compat185 then "--enable-compat185" else "--disable-compat185")
27 ]
28 ++ stdenv.lib.optional dbmSupport "--enable-dbm"
29 ++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
30
31 preConfigure = ''
32 cd build_unix
33 configureScript=../dist/configure
34 '';
35
36 postInstall = ''
37 rm -rf $out/docs
38 '';
39
40 doCheck = true;
41
42 checkPhase = ''
43 make examples_c examples_cxx
44 '';
45
46 meta = with stdenv.lib; {
47 homepage = http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/index.html;
48 description = "Berkeley DB";
49 license = license;
50 platforms = platforms.unix;
51 };
52} // drvArgs)