nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 ocaml,
6 stdlib-shims,
7 uutf,
8 uucp,
9 alcotest,
10 fmt,
11}:
12
13buildDunePackage rec {
14 pname = "terminal";
15 version = "0.5.0";
16
17 minimalOCamlVersion = "4.03";
18
19 src = fetchurl {
20 url = "https://github.com/CraigFe/progress/releases/download/${version}/progress-${version}.tbz";
21 hash = "sha256-f4fwWXNjkoxFuoWa5aFDD2qjwp4lH/GlPPeG7Q4EWWE=";
22 };
23
24 propagatedBuildInputs = [
25 stdlib-shims
26 uutf
27 uucp
28 ];
29
30 doCheck = lib.versionAtLeast ocaml.version "4.08";
31 checkInputs = [
32 alcotest
33 fmt
34 ];
35
36 meta = {
37 description = "Basic utilities for interacting with terminals";
38 homepage = "https://github.com/CraigFe/progress";
39 license = lib.licenses.mit;
40 maintainers = [ lib.maintainers.vbgl ];
41 };
42}