2022-01-19 23:45:15 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl, ocaml
|
|
|
|
, stdlib-shims, uutf, uucp
|
|
|
|
, alcotest, fmt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "terminal";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.4.0";
|
2022-01-19 23:45:15 +00:00
|
|
|
|
|
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-04-21 15:54:59 +00:00
|
|
|
url = "https://github.com/CraigFe/progress/releases/download/${version}/progress-${version}.tbz";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-i+RJVTN5uy3F6LeYBcgER2kKA9yj6a7pWf7PRtgnj7c=";
|
2022-01-19 23:45:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|