2019-09-28 19:39:31 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage
|
2020-10-15 07:11:20 +01:00
|
|
|
, calendar, csv, hex, ppx_deriving, ppx_sexp_conv, re, rresult, sexplib
|
2019-08-03 15:05:30 +01:00
|
|
|
}:
|
2017-07-03 21:10:07 +01:00
|
|
|
|
2019-09-28 19:39:31 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "pgocaml";
|
2020-10-15 07:11:20 +01:00
|
|
|
version = "4.2.2";
|
2019-08-03 15:05:30 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darioteixeira";
|
|
|
|
repo = "pgocaml";
|
2020-10-15 07:11:20 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1rdypc83nap9j2ml9r6n1pzgf79gk1yffwyi6fmcrl7zmy01cg0n";
|
2014-10-10 23:51:29 +01:00
|
|
|
};
|
|
|
|
|
2021-01-31 13:15:46 +00:00
|
|
|
minimumOCamlVersion = "4.08";
|
2020-10-15 07:11:20 +01:00
|
|
|
useDune2 = true;
|
2016-10-22 10:05:39 +01:00
|
|
|
|
2020-10-15 07:11:20 +01:00
|
|
|
propagatedBuildInputs = [ calendar csv hex ppx_deriving ppx_sexp_conv re rresult sexplib ];
|
2014-10-10 23:51:29 +01:00
|
|
|
|
2019-09-28 19:39:31 +01:00
|
|
|
meta = with lib; {
|
2014-10-10 23:51:29 +01:00
|
|
|
description = "An interface to PostgreSQL databases for OCaml applications";
|
2019-09-28 19:39:31 +01:00
|
|
|
inherit (src.meta) homepage;
|
2014-10-10 23:51:29 +01:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
maintainers = with maintainers; [ vbgl ];
|
|
|
|
};
|
|
|
|
}
|