Merge pull request #256067 from aaronjheng/page

page: 4.6.0 -> 4.6.3

authored by Weijia Wang and committed by GitHub d89d1ca0 43caa972

+15 -6
+15 -6
pkgs/tools/misc/page/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub, installShellFiles }: 1 + { lib, rustPlatform, fetchFromGitHub, fetchpatch, installShellFiles }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "page"; 5 - version = "4.6.0"; 5 + version = "4.6.3"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "I60R"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-iK8XRPT/0PG3szIRkHvUIdgJC1XsuBbDKk25RvwSViQ="; 11 + hash = "sha256-uNdtgx9/9+KOfQvHiKNrT8NFWtR2tfJuI2bMwywBC/4="; 12 12 }; 13 13 14 + cargoHash = "sha256-ctYQMBAdSUfEek2vcCa3gnI9N6ZG9b+VvtAzT20jlXY="; 15 + 16 + cargoPatches = [ 17 + # Cargo.lock is outdated. 18 + # https://github.com/I60R/page/pull/45. 19 + (fetchpatch { 20 + url = "https://github.com/I60R/page/commit/83f936b64620ba74043c1db31207b4366c0f7e3d.patch"; 21 + hash = "sha256-qA5oP4K/6eG0A+syVNb1izl+bnYll5V6sWM3LVFTb4o="; 22 + }) 23 + ]; 24 + 14 25 nativeBuildInputs = [ installShellFiles ]; 15 26 postInstall = '' 16 - completions_dir=$(find "target" -name "shell_completions" -type d -printf "%T+\t%p\n" | sort | awk 'NR==1{print $2}') 27 + completions_dir=$(find "target" -name "assets" -type d -printf "%T+\t%p\n" | sort | awk 'NR==1{print $2}') 17 28 installShellCompletion --bash $completions_dir/page.bash 18 29 installShellCompletion --fish $completions_dir/page.fish 19 30 installShellCompletion --zsh $completions_dir/_page 20 31 ''; 21 - 22 - cargoSha256 = "sha256-OZvsZijrIeVxqf58P16Woanf0JsJIENX72n28wMtq14="; 23 32 24 33 meta = with lib; { 25 34 description = "Use neovim as pager";