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