1{ composableDerivation, fetchurl, pcre, openssl, readline, libxml2, geos, apacheAnt, jdk5 }:
2
3let inherit (composableDerivation) edf; in
4
5composableDerivation.composableDerivation {} {
6
7 name = "monetdb-2009-05-01";
8
9 src = fetchurl {
10 url = http://monetdb.cwi.nl/downloads/sources/May2009-SP1/MonetDB-May2009-SuperBall-SP1.tar.bz2;
11 sha256 = "0r794snnwa4m0x57nv8cgfdxwb689946c1mi2s44wp4iljka2ryj";
12 };
13
14 flags = edf { name = "geom"; enable = { buildInputs = [geos]; }; }
15 // {
16 java = { buildInputs = [ (apacheAnt.override {jdk = jdk5;}) jdk5 /* must be 1.5 */ ]; };
17 /* perl TODO export these (SWIG only if its present) HAVE_PERL=1 HAVE_PERL_DEVEL=1 HAVE_PERL_SWIG=1 */
18 };
19
20 buildInputs = [ (pcre.override { unicodeSupport = true; })
21 openssl readline libxml2 ]; # optional python perl php java ?
22
23 cfg = {
24 geomSupport = true;
25 javaSupport = true;
26 };
27
28 configurePhase = ":";
29 buildPhase = ":";
30
31 installPhase = ''
32 mkdir $TMP/build
33 sh monetdb-install.sh --build=$TMP/build --prefix=$out --enable-sql --enable-xquery
34 '';
35
36 meta = {
37 description = "A open-source database system for high-performance applications in data mining, OLAP, GIS, XML Query, text and multimedia retrieval";
38 homepage = http://monetdb.cwi.nl/;
39 license = "MonetDB Public License"; # very similar to Mozilla public license (MPL) Version see 1.1 http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html
40 };
41}