2013-06-04 20:36:11 +02:00
|
|
|
{stdenv, fetchurl, sqlite, ocaml, findlib, pkgconfig}:
|
2010-12-11 16:05:26 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-06-04 20:36:11 +02:00
|
|
|
name = "ocaml-sqlite3-2.0.4";
|
2010-12-11 16:05:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-06-04 20:36:11 +02:00
|
|
|
url = https://bitbucket.org/mmottl/sqlite3-ocaml/downloads/sqlite3-ocaml-2.0.4.tar.gz;
|
|
|
|
sha256 = "51ccb4c7a240eb40652c59e1770cfe1827dfa1eb926c969d19ff414aef4e80a1";
|
2010-12-11 16:05:26 +01:00
|
|
|
};
|
|
|
|
|
2013-06-04 20:36:11 +02:00
|
|
|
buildInputs = [ocaml findlib pkgconfig ];
|
2010-12-11 16:05:26 +01:00
|
|
|
|
2013-06-04 20:36:11 +02:00
|
|
|
#configureFlags = "--with-sqlite3=${sqlite}";
|
2010-12-11 16:05:26 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2013-06-04 20:36:11 +02:00
|
|
|
export PKG_CONFIG_PATH=${sqlite}/lib/pkgconfig/
|
2010-12-11 16:05:26 +01:00
|
|
|
export OCAMLPATH=$OCAMLPATH:$OCAMLFIND_DESTDIR
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2010-12-11 16:05:26 +01:00
|
|
|
'';
|
|
|
|
|
2010-12-21 10:37:35 +01:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
2010-12-11 16:05:26 +01:00
|
|
|
meta = {
|
2012-06-01 11:42:29 +02:00
|
|
|
homepage = https://bitbucket.org/mmottl/sqlite3-ocaml;
|
2010-12-11 16:05:26 +01:00
|
|
|
description = "OCaml bindings to the SQLite 3 database access library";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-12-11 16:05:26 +01:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.z77z
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|