nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 36 lines 1.0 kB view raw
1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5}: 6 7buildDunePackage (finalAttrs: { 8 pname = "ANSITerminal"; 9 version = "0.8.5"; 10 11 src = fetchurl { 12 url = "https://github.com/Chris00/ANSITerminal/releases/download/${finalAttrs.version}/ANSITerminal-${finalAttrs.version}.tbz"; 13 hash = "sha256-q3OyGLajAmfSu8QzEtzzE5gbiwvsVV2SsGuHZkst0w4="; 14 }; 15 16 postPatch = '' 17 substituteInPlace src/dune --replace 'libraries unix bytes' 'libraries unix' 18 ''; 19 20 doCheck = true; 21 22 meta = { 23 description = "Module allowing to use the colors and cursor movements on ANSI terminals"; 24 longDescription = '' 25 ANSITerminal is a module allowing to use the colors and cursor 26 movements on ANSI terminals. It also works on the windows shell (but 27 this part is currently work in progress). 28 ''; 29 homepage = "https://github.com/Chris00/ANSITerminal"; 30 license = with lib.licenses; [ 31 lgpl3Plus 32 ocamlLgplLinkingException 33 ]; 34 maintainers = [ lib.maintainers.jirkamarsik ]; 35 }; 36})