about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/progress/default.nix
blob: a3c0a5add3d21bd2ae003f4afa990451533f469a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildDunePackage, fetchurl
, mtime, terminal_size, alcotest, astring, fmt
}:

buildDunePackage rec {
  pname = "progress";
  version = "0.1.1";

  minimumOCamlVersion = "4.08";
  useDune2 = true;

  src = fetchurl {
    url = "https://github.com/CraigFe/progress/releases/download/${version}/progress-${version}.tbz";
    sha256 = "90c6bec19d014a4c6b0b67006f08bdfcf36981d2176769bebe0ccd75d6785a32";
  };

  propagatedBuildInputs = [ mtime terminal_size ];

  doCheck = true;
  checkInputs = [ alcotest astring fmt ];

  meta = with lib; {
    description = "Progress bar library for OCaml";
    homepage = "https://github.com/CraigFe/progress";
    license = licenses.mit;
    maintainers = [ maintainers.sternenseemann ];
  };
}