1{ stdenv, fetchurl, sqlite, ocaml, findlib, 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 buildInputs = [ ocaml findlib pkgconfig sqlite ]; 13 14 createFindlibDestdir = true; 15 16 meta = with stdenv.lib; { 17 homepage = http://mmottl.github.io/sqlite3-ocaml/; 18 description = "OCaml bindings to the SQLite 3 database access library"; 19 license = licenses.mit; 20 platforms = ocaml.meta.platforms; 21 maintainers = with maintainers; [ 22 z77z vbgl 23 ]; 24 }; 25}