nixpkgs/pkgs/by-name/tl/tlrc/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
865 B
Nix
Raw Normal View History

2023-11-06 19:12:37 +00:00
{ lib
, fetchFromGitHub
, rustPlatform
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
pname = "tlrc";
2024-04-29 15:20:11 +00:00
version = "1.9.2";
2023-11-06 19:12:37 +00:00
src = fetchFromGitHub {
owner = "tldr-pages";
repo = "tlrc";
rev = "v${version}";
2024-04-29 15:20:11 +00:00
hash = "sha256-JQx4vuXbsLrPAbmPlwPiPXJIpRufUzQN+R+Wqj4H8n4=";
2023-11-06 19:12:37 +00:00
};
2024-04-29 15:20:11 +00:00
cargoHash = "sha256-5caZTdpEog8xdCn+LOfW5UdbuWZmO8iggSstxvdjwb0=";
2023-11-06 19:12:37 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage tldr.1
2024-03-24 12:46:08 +00:00
installShellCompletion completions/{tldr.bash,_tldr,tldr.fish}
2023-11-06 19:12:37 +00:00
'';
meta = with lib; {
description = "Official tldr client written in Rust";
homepage = "https://github.com/tldr-pages/tlrc";
changelog = "https://github.com/tldr-pages/tlrc/releases/tag/v${version}";
license = licenses.mit;
mainProgram = "tldr";
maintainers = with maintainers; [ acuteenvy ];
};
}