1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 alcotest,
6}:
7
8buildDunePackage rec {
9 pname = "backoff";
10 version = "0.1.1";
11
12 src = fetchurl {
13 url = "https://github.com/ocaml-multicore/backoff/releases/download/${version}/backoff-${version}.tbz";
14 hash = "sha256-AL6jEbInsbwKVYedpNzjix/YRHtOTizxk6aVNzesnwM=";
15 };
16
17 doCheck = true;
18
19 checkInputs = [ alcotest ];
20
21 meta = {
22 description = "Exponential backoff mechanism for OCaml";
23 homepage = "https://github.com/ocaml-multicore/backoff";
24 license = lib.licenses.isc;
25 maintainers = [ lib.maintainers.vbgl ];
26 };
27
28 minimalOCamlVersion = "4.12";
29}