Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

30 lines
676 B
Nix

{
lib,
buildDunePackage,
ocaml,
fetchurl,
alcotest,
}:
buildDunePackage rec {
pname = "terminal_size";
version = "0.2.0";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/cryptosense/terminal_size/releases/download/v${version}/terminal_size-${version}.tbz";
hash = "sha256-1rYs0oxAcayFypUoCIdFwSTJCU7+rpFyJRRzb5lzsPs=";
};
checkInputs = [ alcotest ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
meta = {
description = "Get the dimensions of the terminal";
homepage = "https://github.com/cryptosense/terminal_size";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.sternenseemann ];
};
}