2010-12-11 16:05:26 +01:00
|
|
|
{stdenv, fetchurl, sqlite, ocaml, findlib}:
|
|
|
|
|
|
|
|
let
|
|
|
|
ocaml_version = (builtins.parseDrvName ocaml.name).version;
|
|
|
|
version = "1.5.8";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-sqlite3-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://hg.ocaml.info/release/ocaml-sqlite3/archive/" +
|
|
|
|
"release-${version}.tar.bz2";
|
|
|
|
sha256 = "0ccy9b4pl9586vlzdkk3kvkz8xqc023ih1aw4nndyjnabkvgl832";
|
|
|
|
};
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
homepage = "http://ocaml.info/home/ocaml_sources.html#ocaml-sqlite3";
|
|
|
|
description = "OCaml bindings to the SQLite 3 database access library";
|
|
|
|
license = "MIT/X11";
|
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
maintainers = [
|
|
|
|
stdenv.lib.maintainers.z77z
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|