mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 12:44:44 +00:00
37 lines
1009 B
Nix
37 lines
1009 B
Nix
{
|
|
lib,
|
|
buildDunePackage,
|
|
fetchurl,
|
|
}:
|
|
|
|
buildDunePackage (finalAttrs: {
|
|
pname = "ANSITerminal";
|
|
version = "0.8.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/Chris00/ANSITerminal/releases/download/${finalAttrs.version}/ANSITerminal-${finalAttrs.version}.tbz";
|
|
hash = "sha256-q3OyGLajAmfSu8QzEtzzE5gbiwvsVV2SsGuHZkst0w4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/dune --replace 'libraries unix bytes' 'libraries unix'
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Module allowing to use the colors and cursor movements on ANSI terminals";
|
|
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).
|
|
'';
|
|
homepage = "https://github.com/Chris00/ANSITerminal";
|
|
license = with lib.licenses; [
|
|
lgpl3Plus
|
|
ocamlLgplLinkingException
|
|
];
|
|
maintainers = [ lib.maintainers.jirkamarsik ];
|
|
};
|
|
})
|