nixpkgs/pkgs/development/ocaml-modules/terminal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
772 B
Nix
Raw Normal View History

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