1{ stdenv, fetchurl, sqlite, ocaml, findlib, ocamlbuild, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 name = "ocaml-sqlite3-${version}";
5 version = "2.0.9";
6
7 src = fetchurl {
8 url = "https://github.com/mmottl/sqlite3-ocaml/releases/download/v${version}/sqlite3-ocaml-${version}.tar.gz";
9 sha256 = "0rwsx1nfa3xqmbygim2qx45jqm1gwf08m70wmcwkx50f1qk3l551";
10 };
11
12 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [ ocaml findlib ocamlbuild sqlite ];
14
15 createFindlibDestdir = true;
16
17 meta = with stdenv.lib; {
18 homepage = http://mmottl.github.io/sqlite3-ocaml/;
19 description = "OCaml bindings to the SQLite 3 database access library";
20 license = licenses.mit;
21 platforms = ocaml.meta.platforms or [];
22 maintainers = with maintainers; [
23 z77z vbgl
24 ];
25 };
26}