Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchurl, buildDunePackage, ocaml
2, cppo, logs, ptime, uri, bigstringaf
3, re, cmdliner, alcotest
4}:
5
6buildDunePackage rec {
7 pname = "caqti";
8 version = "1.9.1";
9
10 minimalOCamlVersion = "4.04";
11 duneVersion = "3";
12
13 src = fetchurl {
14 url = "https://github.com/paurkedal/ocaml-caqti/releases/download/v${version}/caqti-v${version}.tbz";
15 sha256 = "sha256-PQBgJBNx3IcE6/vyNIf26a2xStU22LBhff8eM6UPaJ4=";
16 };
17
18 nativeBuildInputs = [ cppo ];
19 propagatedBuildInputs = [ logs ptime uri bigstringaf ];
20 checkInputs = [ re cmdliner alcotest ];
21
22 doCheck = lib.versionAtLeast ocaml.version "4.08";
23
24 meta = {
25 description = "Unified interface to relational database libraries";
26 license = "LGPL-3.0-or-later WITH OCaml-LGPL-linking-exception";
27 maintainers = with lib.maintainers; [ bcc32 ];
28 homepage = "https://github.com/paurkedal/ocaml-caqti";
29 };
30}