2022-10-02 07:06:37 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml
|
2022-04-21 12:11:01 +00:00
|
|
|
, cppo, logs, ptime, uri, bigstringaf
|
2022-03-01 15:42:22 +00:00
|
|
|
, re, cmdliner, alcotest
|
|
|
|
}:
|
2021-01-24 03:25:21 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "caqti";
|
2022-10-02 07:06:37 +00:00
|
|
|
version = "1.9.1";
|
2021-01-24 03:25:21 +00:00
|
|
|
|
2022-10-02 07:06:37 +00:00
|
|
|
minimalOCamlVersion = "4.04";
|
2023-04-05 04:17:18 +00:00
|
|
|
duneVersion = "3";
|
2021-01-24 03:25:21 +00:00
|
|
|
|
2022-10-02 07:06:37 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/paurkedal/ocaml-caqti/releases/download/v${version}/caqti-v${version}.tbz";
|
|
|
|
sha256 = "sha256-PQBgJBNx3IcE6/vyNIf26a2xStU22LBhff8eM6UPaJ4=";
|
2021-01-24 03:25:21 +00:00
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2022-04-21 12:11:01 +00:00
|
|
|
propagatedBuildInputs = [ logs ptime uri bigstringaf ];
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ re cmdliner alcotest ];
|
2022-04-21 12:11:01 +00:00
|
|
|
|
2022-08-23 06:04:50 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2021-01-24 03:25:21 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Unified interface to relational database libraries";
|
2023-11-27 05:48:52 +00:00
|
|
|
license = with lib.licenses; [ lgpl3Plus ocamlLgplLinkingException ];
|
2021-01-24 03:25:21 +00:00
|
|
|
maintainers = with lib.maintainers; [ bcc32 ];
|
|
|
|
homepage = "https://github.com/paurkedal/ocaml-caqti";
|
|
|
|
};
|
|
|
|
}
|