1{
2 lib,
3 buildDunePackage,
4 ocaml,
5 fetchurl,
6 alcotest,
7}:
8
9buildDunePackage rec {
10 pname = "terminal_size";
11 version = "0.2.0";
12
13 duneVersion = "3";
14
15 src = fetchurl {
16 url = "https://github.com/cryptosense/terminal_size/releases/download/v${version}/terminal_size-${version}.tbz";
17 hash = "sha256-1rYs0oxAcayFypUoCIdFwSTJCU7+rpFyJRRzb5lzsPs=";
18 };
19
20 checkInputs = [ alcotest ];
21 doCheck = lib.versionAtLeast ocaml.version "4.08";
22
23 meta = with lib; {
24 description = "Get the dimensions of the terminal";
25 homepage = "https://github.com/cryptosense/terminal_size";
26 license = licenses.bsd2;
27 maintainers = [ maintainers.sternenseemann ];
28 };
29}