Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildDunePackage, 4 fetchurl, 5}: 6 7buildDunePackage rec { 8 pname = "ANSITerminal"; 9 version = "0.8.5"; 10 11 src = fetchurl { 12 url = "https://github.com/Chris00/ANSITerminal/releases/download/${version}/ANSITerminal-${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 = with lib; { 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 = licenses.lgpl3; 31 maintainers = [ maintainers.jirkamarsik ]; 32 }; 33}