at 24.05-pre 37 lines 860 B view raw
1{ lib 2, rustPlatform 3, fetchCrate 4, installShellFiles 5, ronn 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "termimage"; 10 version = "1.2.1"; 11 12 src = fetchCrate { 13 inherit pname version; 14 hash = "sha256-1FOPe466GqQfiIpsQT9DJn+FupI2vy9b4+7p31ceY6M="; 15 }; 16 17 cargoHash = "sha256-Up6wvkZJ4yLrXp/2sEAv5RqGbhLOQPNHO2vEy2Vhy+E="; 18 19 nativeBuildInputs = [ 20 installShellFiles 21 ronn 22 ]; 23 24 postInstall = '' 25 ronn --roff --organization="termimage developers" termimage.md 26 installManPage termimage.1 27 ''; 28 29 meta = with lib; { 30 description = "Display images in your terminal"; 31 homepage = "https://github.com/nabijaczleweli/termimage"; 32 changelog = "https://github.com/nabijaczleweli/termimage/releases/tag/v${version}"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ figsoda ]; 35 mainProgram = "termimage"; 36 }; 37}