2022-12-28 21:21:41 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "ANSITerminal";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.8.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Chris00/ANSITerminal/releases/download/${version}/ANSITerminal-${version}.tbz";
|
|
|
|
hash = "sha256-q3OyGLajAmfSu8QzEtzzE5gbiwvsVV2SsGuHZkst0w4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/dune --replace 'libraries unix bytes' 'libraries unix'
|
|
|
|
'';
|
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Module allowing to use the colors and cursor movements on ANSI terminals";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
ANSITerminal is a module allowing to use the colors and cursor
|
|
|
|
movements on ANSI terminals. It also works on the windows shell (but
|
|
|
|
this part is currently work in progress).
|
|
|
|
'';
|
2022-12-28 21:21:41 +00:00
|
|
|
homepage = "https://github.com/Chris00/ANSITerminal";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|