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