1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 ocaml,
6 stdlib-shims,
7 uutf,
8 uucp,
9 alcotest,
10 fmt,
11}:
12
13buildDunePackage rec {
14 pname = "terminal";
15 version = "0.4.0";
16
17 minimalOCamlVersion = "4.03";
18
19 src = fetchurl {
20 url = "https://github.com/CraigFe/progress/releases/download/${version}/progress-${version}.tbz";
21 hash = "sha256-i+RJVTN5uy3F6LeYBcgER2kKA9yj6a7pWf7PRtgnj7c=";
22 };
23
24 propagatedBuildInputs = [
25 stdlib-shims
26 uutf
27 uucp
28 ];
29
30 doCheck = lib.versionAtLeast ocaml.version "4.08";
31 checkInputs = [
32 alcotest
33 fmt
34 ];
35
36 meta = with lib; {
37 description = "Basic utilities for interacting with terminals";
38 homepage = "https://github.com/CraigFe/progress";
39 license = licenses.mit;
40 maintainers = [ maintainers.vbgl ];
41 };
42}