nixpkgs/pkgs/development/ocaml-modules/pgocaml/default.nix
2023-03-18 13:26:25 +01:00

27 lines
717 B
Nix

{ lib, fetchFromGitHub, buildDunePackage
, calendar, csv, hex, ppx_deriving, ppx_sexp_conv, re, rresult, sexplib
}:
buildDunePackage rec {
pname = "pgocaml";
version = "4.3.0";
src = fetchFromGitHub {
owner = "darioteixeira";
repo = "pgocaml";
rev = version;
hash = "sha256-W1fbRnU1l61qqxfVY2qiBnVpGD81xrBO8k0tWr+RXMY=";
};
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [ calendar csv hex ppx_deriving ppx_sexp_conv re rresult sexplib ];
meta = with lib; {
description = "An interface to PostgreSQL databases for OCaml applications";
inherit (src.meta) homepage;
license = licenses.lgpl2;
maintainers = with maintainers; [ vbgl ];
};
}