2022-08-23 06:04:50 +00:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml
|
2022-04-21 12:11:01 +00:00
|
|
|
, cppo, logs, ptime, uri, bigstringaf
|
|
|
|
, re, cmdliner, alcotest }:
|
2021-01-24 03:25:21 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "caqti";
|
2022-04-21 12:11:01 +00:00
|
|
|
version = "1.8.0";
|
2021-01-24 03:25:21 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "paurkedal";
|
|
|
|
repo = "ocaml-${pname}";
|
|
|
|
rev = "v${version}";
|
2022-04-21 12:11:01 +00:00
|
|
|
sha256 = "sha256-8uKlrq9j1Z3QzkCyoRIn2j6wCdGyo7BY7XlbFHN1xVE=";
|
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 ];
|
|
|
|
checkInputs = [ re cmdliner alcotest ];
|
|
|
|
|
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";
|
|
|
|
license = "LGPL-3.0-or-later WITH OCaml-LGPL-linking-exception";
|
|
|
|
maintainers = with lib.maintainers; [ bcc32 ];
|
|
|
|
homepage = "https://github.com/paurkedal/ocaml-caqti";
|
|
|
|
};
|
|
|
|
}
|