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