page: 2.3.5 -> 3.0.0

This commit is contained in:
ilkecan 2022-07-02 19:59:17 +00:00
parent cc8ee632a3
commit 2d7728a34f

View file

@ -2,25 +2,24 @@
rustPlatform.buildRustPackage rec {
pname = "page";
version = "2.3.5";
version = "3.0.0";
src = fetchFromGitHub {
owner = "I60R";
repo = pname;
rev = "v${version}";
sha256 = "1pk3iclmwbkg4nvsgarq4qjpzapjhsl7b7z6zw6havp1zmx9h806";
sha256 = "sha256-CCjF0KwXd0XSga6/wlWpUPU+Xr0hjWIVVXIP0M8Hh5g=";
};
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
completions_dir=$(find "target" -name "shell_completions" -type d -printf "%T+\t%p\n" | sort | awk 'NR==1{print $2}')
installShellCompletion --bash $completions_dir/page.bash
installShellCompletion --fish $completions_dir/page.fish
installShellCompletion --zsh $completions_dir/_page
'';
cargoSha256 = "19ff5h8z34z15wdnd3mj8bwlqcixwbimys77gfjmzb3w1g9ivlks";
cargoSha256 = "sha256-MFNc4U6DAb5UscqxKz7RORoPeqne2pdkL/+mLLL+pKM=";
meta = with lib; {
description = "Use neovim as pager";