1{
2 lib,
3 stdenv,
4 fetchurl,
5 db62,
6 xercesc,
7 xqilla,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "dbxml";
12 version = "6.1.4";
13
14 src = fetchurl {
15 url = "http://download.oracle.com/berkeley-db/${pname}-${version}.tar.gz";
16 sha256 = "a8fc8f5e0c3b6e42741fa4dfc3b878c982ff8f5e5f14843f6a7e20d22e64251a";
17 };
18
19 outputs = [
20 "bin"
21 "dev"
22 "out"
23 ];
24
25 patches = [
26 ./cxx11.patch
27 ./incorrect-optimization.patch
28 ];
29
30 buildInputs = [
31 xercesc
32 xqilla
33 ];
34
35 propagatedBuildInputs = [
36 db62
37 ];
38
39 configureFlags = [
40 "--with-berkeleydb=${db62.out}"
41 "--with-xerces=${xercesc}"
42 "--with-xqilla=${xqilla}"
43 # code uses register storage specifier
44 "CXXFLAGS=-std=c++14"
45 ];
46
47 preConfigure = ''
48 cd dbxml
49 '';
50
51 meta = with lib; {
52 homepage = "https://www.oracle.com/database/berkeley-db/xml.html";
53 description = "Embeddable XML database based on Berkeley DB";
54 license = licenses.agpl3Only;
55 maintainers = [ ];
56 platforms = platforms.unix;
57 };
58}