ocamlPackages.caqti: 1.9.1 → 2.1.1

This commit is contained in:
Vincent Laporte 2024-02-22 07:32:37 +01:00 committed by Vincent Laporte
parent c6caed479a
commit c29ae2c846
8 changed files with 26 additions and 25 deletions

View file

@ -4,7 +4,7 @@ buildDunePackage {
pname = "caqti-async";
inherit (caqti) version src;
duneVersion = "3";
minimalOCamlVersion = "4.14";
propagatedBuildInputs = [ async_kernel async_unix caqti core_kernel ];

View file

@ -1,25 +1,34 @@
{ lib, fetchurl, buildDunePackage, ocaml
, cppo, logs, ptime, uri, bigstringaf
, re, cmdliner, alcotest
{ lib
, fetchurl
, buildDunePackage
, angstrom
, bigstringaf
, domain-name
, dune-site
, ipaddr
, logs
, lwt-dllist
, mtime
, ptime
, uri
}:
buildDunePackage rec {
pname = "caqti";
version = "1.9.1";
version = "2.1.1";
minimalOCamlVersion = "4.04";
duneVersion = "3";
minimalOCamlVersion = "4.08";
src = fetchurl {
url = "https://github.com/paurkedal/ocaml-caqti/releases/download/v${version}/caqti-v${version}.tbz";
sha256 = "sha256-PQBgJBNx3IcE6/vyNIf26a2xStU22LBhff8eM6UPaJ4=";
hash = "sha256-SDpTX0HiZBkX/BgyzkrRX/w/ToKDsbMBiiYXNJWDCQo=";
};
nativeBuildInputs = [ cppo ];
propagatedBuildInputs = [ logs ptime uri bigstringaf ];
checkInputs = [ re cmdliner alcotest ];
buildInputs = [ dune-site ];
propagatedBuildInputs = [ angstrom bigstringaf domain-name ipaddr logs lwt-dllist mtime ptime uri ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
# Checks depend on caqti-driver-sqlite3 (circural dependency)
doCheck = false;
meta = {
description = "Unified interface to relational database libraries";

View file

@ -6,8 +6,6 @@ buildDunePackage {
propagatedBuildInputs = [ caqti mariadb ];
duneVersion = "3";
meta = caqti.meta // {
description = "MariaDB driver for Caqti using C bindings";
};

View file

@ -4,8 +4,6 @@ buildDunePackage {
pname = "caqti-driver-postgresql";
inherit (caqti) version src;
duneVersion = "3";
propagatedBuildInputs = [ caqti postgresql ];
meta = caqti.meta // {

View file

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

View file

@ -4,8 +4,6 @@ buildDunePackage {
pname = "caqti-dynload";
inherit (caqti) version src;
duneVersion = "3";
propagatedBuildInputs = [ caqti findlib ];
meta = caqti.meta // {

View file

@ -4,8 +4,6 @@ buildDunePackage {
pname = "caqti-lwt";
inherit (caqti) version src;
duneVersion = "3";
propagatedBuildInputs = [ caqti logs lwt ];
meta = caqti.meta // { description = "Lwt support for Caqti"; };

View file

@ -4,8 +4,6 @@ buildDunePackage {
pname = "caqti-type-calendar";
inherit (caqti) src version;
duneVersion = "3";
propagatedBuildInputs = [ calendar caqti ];
meta = caqti.meta // {