2021-04-15 00:37:46 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, dune-configurator, postgresql }:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "postgresql";
|
2021-04-15 00:37:46 +00:00
|
|
|
version = "5.0.0";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-06-24 18:47:55 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mmottl";
|
|
|
|
repo = "postgresql-ocaml";
|
|
|
|
rev = version;
|
2021-04-15 00:37:46 +00:00
|
|
|
sha256 = "1i4pnh2v00i0s7s9pcwz1x6s4xcd77d08gjjkvy0fmda6mqq6ghn";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [ postgresql ];
|
|
|
|
buildInputs = [ dune-configurator ];
|
2023-05-24 13:37:59 +00:00
|
|
|
propagatedBuildInputs = [ postgresql ];
|
2021-02-05 17:12:51 +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";
|
|
|
|
};
|
|
|
|
}
|