package.nix (598B)
1 { 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 }: 6 7 rustPlatform.buildRustPackage (finalAttrs: { 8 pname = "leaf"; 9 version = "1.21.0"; 10 11 src = fetchFromGitHub { 12 owner = "RivoLink"; 13 repo = "leaf"; 14 tag = finalAttrs.version; 15 hash = "sha256-i9LVpNhSRXm4eW5xEOANZPCtnExPzgO+0fDZzg634Ic="; 16 }; 17 18 cargoHash = "sha256-7iw2d5iySMtVUSWptqeO8ZSIMsufdiew6MsxA08PI7U="; 19 20 meta = { 21 description = "Terminal Markdown previewer"; 22 homepage = "https://github.com/RivoLink/leaf"; 23 license = lib.licenses.mit; 24 maintainers = [ lib.maintainers.sikmir ]; 25 mainProgram = "leaf"; 26 }; 27 })
