2010-12-11 16:05:26 +01:00
|
|
|
{stdenv, fetchurl, sqlite, ocaml, findlib}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2012-06-01 11:42:29 +02:00
|
|
|
name = "ocaml-sqlite3-1.6.3";
|
2010-12-11 16:05:26 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-01 11:42:29 +02:00
|
|
|
url = https://bitbucket.org/mmottl/sqlite3-ocaml/downloads/sqlite3-ocaml-1.6.3.tar.gz;
|
|
|
|
sha256 = "004wysf80bmb8r4yaa648v0bqrh2ry3kzy763gdksw4n15blghv5";
|
2010-12-11 16:05:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ocaml findlib];
|
|
|
|
|
|
|
|
configureFlags = "--with-sqlite3=${sqlite}";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
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";
|
|
|
|
license = "MIT/X11";
|
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.z77z
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|