2021-04-07 19:30:15 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, dune-configurator, postgresql }:
|
2021-01-24 18:28:12 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "postgresql";
|
2021-04-07 19:30:15 +00:00
|
|
|
version = "5.0.0";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2021-01-24 18:28:12 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.08";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mmottl";
|
|
|
|
repo = "postgresql-ocaml";
|
|
|
|
rev = version;
|
2021-04-07 19:30:15 +00:00
|
|
|
sha256 = "1i4pnh2v00i0s7s9pcwz1x6s4xcd77d08gjjkvy0fmda6mqq6ghn";
|
2021-01-24 18:28:12 +00:00
|
|
|
};
|
|
|
|
|
2021-04-07 19:30:15 +00:00
|
|
|
buildInputs = [ dune-configurator postgresql ];
|
2021-01-24 18:28:12 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Bindings to the PostgreSQL library";
|
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = with lib.maintainers; [ bcc32 ];
|
|
|
|
homepage = "https://mmottl.github.io/postgresql-ocaml";
|
|
|
|
};
|
|
|
|
}
|