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