Unverified Commit 8c5e98cd authored by Vincent Laporte's avatar Vincent Laporte Committed by GitHub
Browse files

ocamlPackages.pgx: init at 2.3 (#474703)

parents d3052ba3 a2ebc301
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  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 ];
  };
})
+29 −0
Original line number Diff line number Diff line
{
  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";
  };
})
+23 −0
Original line number Diff line number Diff line
{
  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";
  };
})
+24 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -1725,6 +1725,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 { };