1{ lib, fetchFromGitHub, buildDunePackage, dune-configurator, postgresql }:
2
3buildDunePackage rec {
4 pname = "postgresql";
5 version = "5.0.0";
6
7 useDune2 = true;
8
9 minimumOCamlVersion = "4.08";
10
11 src = fetchFromGitHub {
12 owner = "mmottl";
13 repo = "postgresql-ocaml";
14 rev = version;
15 sha256 = "1i4pnh2v00i0s7s9pcwz1x6s4xcd77d08gjjkvy0fmda6mqq6ghn";
16 };
17
18 buildInputs = [ dune-configurator postgresql ];
19
20 meta = {
21 description = "Bindings to the PostgreSQL library";
22 license = lib.licenses.lgpl21Plus;
23 maintainers = with lib.maintainers; [ bcc32 ];
24 homepage = "https://mmottl.github.io/postgresql-ocaml";
25 };
26}