@@ -0,0 +1,30 @@
1+{ lib, buildDunePackage, fetchurl, ocaml
2+, stdlib-shims, uutf, uucp
3+, alcotest, fmt
4+}:
5+
6+buildDunePackage rec {
7+ pname = "terminal";
8+ version = "0.2.1";
9+
10+ minimalOCamlVersion = "4.03";
11+ useDune2 = true;
12+
13+ src = fetchurl {
14+ url = "https://github.com/CraigFe/progress/releases/download/${version}/terminal-${version}.tbz";
15+ sha256 = "sha256:0vjqkvmpyi8kvmb4vrx3f0994rph8i9pvlrz1dyi126vlb2zbrvs";
16+ };
17+
18+ propagatedBuildInputs = [ stdlib-shims uutf uucp ];
19+
20+ doCheck = lib.versionAtLeast ocaml.version "4.05";
21+ checkInputs = [ alcotest fmt ];
22+
23+ meta = with lib; {
24+ description = "Basic utilities for interacting with terminals";
25+ homepage = "https://github.com/CraigFe/progress";
26+ license = licenses.mit;
27+ maintainers = [ maintainers.vbgl ];
28+ };
29+}
30+