2022-01-19 23:45:15 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl, ocaml
|
|
|
|
, stdlib-shims, uutf, uucp
|
|
|
|
, alcotest, fmt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "terminal";
|
|
|
|
version = "0.2.1";
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/CraigFe/progress/releases/download/${version}/terminal-${version}.tbz";
|
|
|
|
sha256 = "sha256:0vjqkvmpyi8kvmb4vrx3f0994rph8i9pvlrz1dyi126vlb2zbrvs";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ stdlib-shims uutf uucp ];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest fmt ];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Basic utilities for interacting with terminals";
|
|
|
|
homepage = "https://github.com/CraigFe/progress";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|