ocamlPackages.ansi: init at 0.7.0 (#535547)

This commit is contained in:
Ulrik Strid
2026-07-16 14:26:33 +00:00
committed by GitHub
2 changed files with 50 additions and 0 deletions
@@ -0,0 +1,48 @@
{
lib,
buildDunePackage,
fetchFromGitHub,
astring,
fmt,
tyxml,
alcotest,
}:
buildDunePackage (finalAttrs: {
pname = "ansi";
version = "0.7.0";
minimalOCamlVersion = "4.10";
src = fetchFromGitHub {
owner = "ocurrent";
repo = "ansi";
tag = finalAttrs.version;
hash = "sha256-VZR8hz2v4gAvTkizBt59DSYr3tGPWT1Iid8m8YQx48Y=";
};
propagatedBuildInputs = [
astring
fmt
tyxml
];
checkInputs = [
alcotest
];
doCheck = true;
meta = {
description = "ANSI escape sequence parser";
longDescription = ''
This package provides a basic ANSI escape parser. Program output (such as
build logs) often includes ANSI escape codes to colour and style the output.
This library interprets some of the common codes and can convert them to
HTML, producing basic styled output (e.g. highlighting errors in red).
'';
homepage = "https://github.com/ocurrent/ansi";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ otini ];
};
})
+2
View File
@@ -52,6 +52,8 @@ let
angstrom-unix = callPackage ../development/ocaml-modules/angstrom-unix { };
ansi = callPackage ../development/ocaml-modules/ansi { };
ansiterminal = callPackage ../development/ocaml-modules/ansiterminal { };
ao = callPackage ../development/ocaml-modules/ao { };