ocamlPackages.caqti*: init at 1.3.0

Except for caqti-type-calendar, whose most recent version number is
1.2.0.
This commit is contained in:
Aaron L. Zeng 2021-01-23 22:25:21 -05:00 committed by Vincent Laporte
parent 5b13986979
commit 1b6764da4e
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F
9 changed files with 130 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{ lib, buildDunePackage, async_kernel, async_unix, caqti, core_kernel }:
buildDunePackage {
pname = "caqti-async";
useDune2 = true;
inherit (caqti) version src;
propagatedBuildInputs = [ async_kernel async_unix caqti core_kernel ];
meta = caqti.meta // { description = "Async support for Caqti"; };
}

View File

@ -0,0 +1,26 @@
{ lib, fetchFromGitHub, buildDunePackage, cppo, logs, ptime, uri }:
buildDunePackage rec {
pname = "caqti";
version = "1.3.0";
useDune2 = true;
minimumOCamlVersion = "4.04";
src = fetchFromGitHub {
owner = "paurkedal";
repo = "ocaml-${pname}";
rev = "v${version}";
sha256 = "1ksjchfjnh059wvd95my1sv9b0ild0dfaiynbf2xsaz7zg1y4xmw";
};
buildInputs = [ cppo ];
propagatedBuildInputs = [ logs ptime uri ];
meta = {
description = "Unified interface to relational database libraries";
license = "LGPL-3.0-or-later WITH OCaml-LGPL-linking-exception";
maintainers = with lib.maintainers; [ bcc32 ];
homepage = "https://github.com/paurkedal/ocaml-caqti";
};
}

View File

@ -0,0 +1,13 @@
{ lib, buildDunePackage, caqti, mariadb }:
buildDunePackage {
pname = "caqti-driver-mariadb";
useDune2 = true;
inherit (caqti) version src;
propagatedBuildInputs = [ caqti mariadb ];
meta = caqti.meta // {
description = "MariaDB driver for Caqti using C bindings";
};
}

View File

@ -0,0 +1,13 @@
{ lib, buildDunePackage, caqti, postgresql }:
buildDunePackage {
pname = "caqti-driver-postgresql";
useDune2 = true;
inherit (caqti) version src;
propagatedBuildInputs = [ caqti postgresql ];
meta = caqti.meta // {
description = "PostgreSQL driver for Caqti based on C bindings";
};
}

View File

@ -0,0 +1,13 @@
{ lib, buildDunePackage, caqti, ocaml_sqlite3 }:
buildDunePackage {
pname = "caqti-driver-sqlite3";
useDune2 = true;
inherit (caqti) version src;
propagatedBuildInputs = [ caqti ocaml_sqlite3 ];
meta = caqti.meta // {
description = "Sqlite3 driver for Caqti using C bindings";
};
}

View File

@ -0,0 +1,13 @@
{ lib, buildDunePackage, caqti }:
buildDunePackage {
pname = "caqti-dynload";
useDune2 = true;
inherit (caqti) version src;
propagatedBuildInputs = [ caqti ];
meta = caqti.meta // {
description = "Dynamic linking of Caqti drivers using findlib.dynload";
};
}

View File

@ -0,0 +1,11 @@
{ lib, buildDunePackage, caqti, logs, lwt }:
buildDunePackage {
pname = "caqti-lwt";
useDune2 = true;
inherit (caqti) version src;
propagatedBuildInputs = [ caqti logs lwt ];
meta = caqti.meta // { description = "Lwt support for Caqti"; };
}

View File

@ -0,0 +1,14 @@
{ lib, buildDunePackage, calendar, caqti }:
buildDunePackage {
pname = "caqti-type-calendar";
version = "1.2.0";
useDune2 = true;
inherit (caqti) src;
propagatedBuildInputs = [ calendar caqti ];
meta = caqti.meta // {
description = "Date and time field types using the calendar library";
};
}

View File

@ -130,6 +130,22 @@ let
cairo2 = callPackage ../development/ocaml-modules/cairo2 { };
caqti = callPackage ../development/ocaml-modules/caqti { };
caqti-async = callPackage ../development/ocaml-modules/caqti/async.nix { };
caqti-driver-mariadb = callPackage ../development/ocaml-modules/caqti/driver-mariadb.nix { };
caqti-driver-postgresql = callPackage ../development/ocaml-modules/caqti/driver-postgresql.nix { };
caqti-driver-sqlite3 = callPackage ../development/ocaml-modules/caqti/driver-sqlite3.nix { };
caqti-dynload = callPackage ../development/ocaml-modules/caqti/dynload.nix { };
caqti-lwt = callPackage ../development/ocaml-modules/caqti/lwt.nix { };
caqti-type-calendar = callPackage ../development/ocaml-modules/caqti/type-calendar.nix { };
cfstream = callPackage ../development/ocaml-modules/cfstream { };
charInfo_width = callPackage ../development/ocaml-modules/charInfo_width { };