1{ lib, buildDunePackage, fetchurl
2, mtime, terminal_size, alcotest, astring, fmt
3}:
4
5buildDunePackage rec {
6 pname = "progress";
7 version = "0.1.1";
8
9 minimumOCamlVersion = "4.08";
10 useDune2 = true;
11
12 src = fetchurl {
13 url = "https://github.com/CraigFe/progress/releases/download/${version}/progress-${version}.tbz";
14 sha256 = "90c6bec19d014a4c6b0b67006f08bdfcf36981d2176769bebe0ccd75d6785a32";
15 };
16
17 propagatedBuildInputs = [ mtime terminal_size ];
18
19 doCheck = true;
20 checkInputs = [ alcotest astring fmt ];
21
22 meta = with lib; {
23 description = "Progress bar library for OCaml";
24 homepage = "https://github.com/CraigFe/progress";
25 license = licenses.mit;
26 maintainers = [ maintainers.sternenseemann ];
27 };
28}