1{ lib, fetchurl, sqlite, pkg-config, buildDunePackage, dune-configurator }: 2 3buildDunePackage rec { 4 pname = "sqlite3"; 5 version = "5.1.0"; 6 duneVersion = "3"; 7 minimalOCamlVersion = "4.12"; 8 9 src = fetchurl { 10 url = "https://github.com/mmottl/sqlite3-ocaml/releases/download/${version}/sqlite3-${version}.tbz"; 11 hash = "sha256-uw23EWkajfok/insTstpEkRK2Q4PTER6+Jgx5tHf/qU="; 12 }; 13 14 nativeBuildInputs = [ pkg-config ]; 15 buildInputs = [ dune-configurator sqlite ]; 16 17 meta = with 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 maintainers = with maintainers; [ 22 maggesi vbgl 23 ]; 24 }; 25}