2022-10-21 18:38:19 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml
|
2022-04-27 09:35:20 +00:00
|
|
|
, cppo, logs, ptime, uri, bigstringaf
|
|
|
|
, re, cmdliner, alcotest }:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "caqti";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.9.1";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
minimalOCamlVersion = "4.04";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/paurkedal/ocaml-caqti/releases/download/v${version}/caqti-v${version}.tbz";
|
|
|
|
sha256 = "sha256-PQBgJBNx3IcE6/vyNIf26a2xStU22LBhff8eM6UPaJ4=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [ logs ptime uri bigstringaf ];
|
|
|
|
checkInputs = [ re cmdliner alcotest ];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|