567e8dfd8e
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>
43 lines
781 B
Nix
43 lines
781 B
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchurl,
|
|
ocaml,
|
|
stdlib-shims,
|
|
uutf,
|
|
uucp,
|
|
alcotest,
|
|
fmt,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "terminal";
|
|
version = "0.5.0";
|
|
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/CraigFe/progress/releases/download/${version}/progress-${version}.tbz";
|
|
hash = "sha256-f4fwWXNjkoxFuoWa5aFDD2qjwp4lH/GlPPeG7Q4EWWE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
stdlib-shims
|
|
uutf
|
|
uucp
|
|
];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
checkInputs = [
|
|
alcotest
|
|
fmt
|
|
];
|
|
|
|
meta = {
|
|
description = "Basic utilities for interacting with terminals";
|
|
homepage = "https://github.com/CraigFe/progress";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
};
|
|
}
|