1{ lib, fetchFromGitHub, buildDunePackage
2, calendar, camlp-streams, csv, hex, ppx_deriving, ppx_sexp_conv, re, rresult, sexplib
3}:
4
5buildDunePackage rec {
6 pname = "pgocaml";
7 version = "4.4.0";
8 src = fetchFromGitHub {
9 owner = "darioteixeira";
10 repo = "pgocaml";
11 rev = "v${version}";
12 hash = "sha256-Mz3zVgXas1UivH/BVARx5kWClgr9v9YcGarwaD961tU=";
13 };
14
15 minimalOCamlVersion = "4.08";
16
17 propagatedBuildInputs = [ calendar csv hex ppx_deriving ppx_sexp_conv re
18 rresult sexplib camlp-streams
19 ];
20
21 meta = with lib; {
22 description = "Interface to PostgreSQL databases for OCaml applications";
23 homepage = "https://github.com/darioteixeira/pgocaml";
24 license = licenses.lgpl2Only;
25 maintainers = with maintainers; [ vbgl ];
26 };
27}