summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/caqti
diff options
context:
space:
mode:
authorAaron L. Zeng <me@bcc32.com>2021-01-23 22:25:21 -0500
committerVincent Laporte <Vincent.Laporte@gmail.com>2021-01-30 11:37:36 +0100
commit1b6764da4e600e66c896a6746ceaa038a40a8f2b (patch)
treea154f2c5c54317d225fbe5ebd6ba1370df5ca770 /pkgs/development/ocaml-modules/caqti
parent5b13986979cd15a31c9cc963a17715f32ca3fd80 (diff)
downloadnixpkgs-1b6764da4e600e66c896a6746ceaa038a40a8f2b.tar
nixpkgs-1b6764da4e600e66c896a6746ceaa038a40a8f2b.tar.gz
nixpkgs-1b6764da4e600e66c896a6746ceaa038a40a8f2b.tar.bz2
nixpkgs-1b6764da4e600e66c896a6746ceaa038a40a8f2b.tar.lz
nixpkgs-1b6764da4e600e66c896a6746ceaa038a40a8f2b.tar.xz
nixpkgs-1b6764da4e600e66c896a6746ceaa038a40a8f2b.tar.zst
nixpkgs-1b6764da4e600e66c896a6746ceaa038a40a8f2b.zip
ocamlPackages.caqti*: init at 1.3.0
Except for caqti-type-calendar, whose most recent version number is
1.2.0.
Diffstat (limited to 'pkgs/development/ocaml-modules/caqti')
-rw-r--r--pkgs/development/ocaml-modules/caqti/async.nix11
-rw-r--r--pkgs/development/ocaml-modules/caqti/default.nix26
-rw-r--r--pkgs/development/ocaml-modules/caqti/driver-mariadb.nix13
-rw-r--r--pkgs/development/ocaml-modules/caqti/driver-postgresql.nix13
-rw-r--r--pkgs/development/ocaml-modules/caqti/driver-sqlite3.nix13
-rw-r--r--pkgs/development/ocaml-modules/caqti/dynload.nix13
-rw-r--r--pkgs/development/ocaml-modules/caqti/lwt.nix11
-rw-r--r--pkgs/development/ocaml-modules/caqti/type-calendar.nix14
8 files changed, 114 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/caqti/async.nix b/pkgs/development/ocaml-modules/caqti/async.nix
new file mode 100644
index 00000000000..0e0da6a94bb
--- /dev/null
+++ b/pkgs/development/ocaml-modules/caqti/async.nix
@@ -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"; };
+}
diff --git a/pkgs/development/ocaml-modules/caqti/default.nix b/pkgs/development/ocaml-modules/caqti/default.nix
new file mode 100644
index 00000000000..6df0af597c2
--- /dev/null
+++ b/pkgs/development/ocaml-modules/caqti/default.nix
@@ -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";
+  };
+}
diff --git a/pkgs/development/ocaml-modules/caqti/driver-mariadb.nix b/pkgs/development/ocaml-modules/caqti/driver-mariadb.nix
new file mode 100644
index 00000000000..5f4f681540e
--- /dev/null
+++ b/pkgs/development/ocaml-modules/caqti/driver-mariadb.nix
@@ -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";
+  };
+}
diff --git a/pkgs/development/ocaml-modules/caqti/driver-postgresql.nix b/pkgs/development/ocaml-modules/caqti/driver-postgresql.nix
new file mode 100644
index 00000000000..a1b427a5edf
--- /dev/null
+++ b/pkgs/development/ocaml-modules/caqti/driver-postgresql.nix
@@ -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";
+  };
+}
diff --git a/pkgs/development/ocaml-modules/caqti/driver-sqlite3.nix b/pkgs/development/ocaml-modules/caqti/driver-sqlite3.nix
new file mode 100644
index 00000000000..5282ba5ef50
--- /dev/null
+++ b/pkgs/development/ocaml-modules/caqti/driver-sqlite3.nix
@@ -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";
+  };
+}
diff --git a/pkgs/development/ocaml-modules/caqti/dynload.nix b/pkgs/development/ocaml-modules/caqti/dynload.nix
new file mode 100644
index 00000000000..6ed86683728
--- /dev/null
+++ b/pkgs/development/ocaml-modules/caqti/dynload.nix
@@ -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";
+  };
+}
diff --git a/pkgs/development/ocaml-modules/caqti/lwt.nix b/pkgs/development/ocaml-modules/caqti/lwt.nix
new file mode 100644
index 00000000000..f02fa377f80
--- /dev/null
+++ b/pkgs/development/ocaml-modules/caqti/lwt.nix
@@ -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"; };
+}
diff --git a/pkgs/development/ocaml-modules/caqti/type-calendar.nix b/pkgs/development/ocaml-modules/caqti/type-calendar.nix
new file mode 100644
index 00000000000..d2050e2cf47
--- /dev/null
+++ b/pkgs/development/ocaml-modules/caqti/type-calendar.nix
@@ -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";
+  };
+}