Merge pull request #298620 from acuteenvy/tlrc-v1.9.0

tlrc: 1.8.0 -> 1.9.0
This commit is contained in:
Pol Dellaiera 2024-03-24 22:35:12 +01:00 committed by GitHub
commit 49f813ff70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 8 deletions

View File

@ -6,26 +6,22 @@
rustPlatform.buildRustPackage rec {
pname = "tlrc";
version = "1.8.0";
version = "1.9.0";
src = fetchFromGitHub {
owner = "tldr-pages";
repo = "tlrc";
rev = "v${version}";
hash = "sha256-wHAPlBNVhIytquEAUdrbxE4m0njVRPxxlYlwjqG9Zlw=";
hash = "sha256-SoWGZXBAqWWg5kwwpWuiA7iGqq9RNok/LqsjPAy6O+k=";
};
cargoHash = "sha256-BymyjSVNwS3HPNnZcaAu1xUssV2iXmECtpKXPdZpM3g=";
cargoHash = "sha256-+HxRu8t6nofeE9WrDxQhebWIgeMYeMSXnHtHR1OHGzw=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage tldr.1
installShellCompletion --name tldr \
--bash $releaseDir/build/tlrc-*/out/tldr.bash \
--zsh $releaseDir/build/tlrc-*/out/_tldr \
--fish $releaseDir/build/tlrc-*/out/tldr.fish
installShellCompletion completions/{tldr.bash,_tldr,tldr.fish}
'';
meta = with lib; {