ocamlPackages.pgx: init at 2.3

This commit is contained in:
Volker Diels-Grabsch
2026-02-25 11:38:13 +01:00
parent b742126a99
commit a2ebc3011d
5 changed files with 129 additions and 0 deletions
@@ -0,0 +1,45 @@
{
alcotest,
buildDunePackage,
camlp-streams,
fetchurl,
hex,
ipaddr,
lib,
ppx_compare,
ppx_custom_printf,
ppx_sexp_conv,
re,
uuidm,
}:
buildDunePackage (finalAttrs: {
pname = "pgx";
version = "2.3";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/pgx-ocaml/pgx/archive/refs/tags/${finalAttrs.version}.tar.gz";
hash = "sha256-Rp9PXsWI4cBc1YHD7uqKATrRt5tgNJowbaAFg1aeVKM=";
};
propagatedBuildInputs = [
camlp-streams
hex
ipaddr
ppx_compare
ppx_custom_printf
ppx_sexp_conv
re
uuidm
];
checkInputs = [ alcotest ];
doCheck = true;
meta = {
description = "Pure-OCaml PostgreSQL client library";
homepage = "https://github.com/pgx-ocaml/pgx";
license = lib.licenses.lgpl2Only;
maintainers = [ lib.maintainers.vog ];
};
})
@@ -0,0 +1,29 @@
{
alcotest,
base64,
buildDunePackage,
eio,
eio_main,
pgx,
}:
buildDunePackage (finalAttrs: {
pname = "pgx_eio";
inherit (pgx) version src;
propagatedBuildInputs = [
eio
pgx
];
checkInputs = [
alcotest
base64
eio_main
];
doCheck = true;
meta = pgx.meta // {
description = "Pgx using Eio for IO";
};
})
@@ -0,0 +1,23 @@
{
buildDunePackage,
logs,
lwt,
pgx,
}:
buildDunePackage (finalAttrs: {
pname = "pgx_lwt";
inherit (pgx) version src;
propagatedBuildInputs = [
logs
lwt
pgx
];
doCheck = true;
meta = pgx.meta // {
description = "Pgx using Lwt for IO";
};
})
@@ -0,0 +1,24 @@
{
alcotest-lwt,
base64,
buildDunePackage,
pgx,
pgx_lwt,
}:
buildDunePackage (finalAttrs: {
pname = "pgx_lwt_unix";
inherit (pgx) version src;
propagatedBuildInputs = [ pgx_lwt ];
checkInputs = [
alcotest-lwt
base64
];
doCheck = true;
meta = pgx.meta // {
description = "Pgx using Lwt and Unix libraries for IO";
};
})
+8
View File
@@ -1720,6 +1720,14 @@ let
pgsolver = callPackage ../development/ocaml-modules/pgsolver { };
pgx = callPackage ../development/ocaml-modules/pgx { };
pgx_eio = callPackage ../development/ocaml-modules/pgx/eio.nix { };
pgx_lwt = callPackage ../development/ocaml-modules/pgx/lwt.nix { };
pgx_lwt_unix = callPackage ../development/ocaml-modules/pgx/lwt_unix.nix { };
phylogenetics = callPackage ../development/ocaml-modules/phylogenetics { };
piaf = callPackage ../development/ocaml-modules/piaf { };