1 { lib, rustPlatform, fetchFromGitHub, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-e6GkvIojMfsIm4UxRyEvvNkZPGSmUnf9K/0ZISy8kj4=";
14 nativeBuildInputs = [ installShellFiles ];
16 completions_dir=$(find "target" -name "shell_completions" -type d -printf "%T+\t%p\n" | sort | awk 'NR==1{print $2}')
17 installShellCompletion --bash $completions_dir/page.bash
18 installShellCompletion --fish $completions_dir/page.fish
19 installShellCompletion --zsh $completions_dir/_page
22 cargoSha256 = "sha256-qyaHW4mbJXZ/iGQlIzmTo2dgPLC9JlPKBee+uAuW5PQ=";
25 description = "Use neovim as pager";
26 homepage = "https://github.com/I60R/page";
27 license = licenses.mit;
28 maintainers = [ maintainers.s1341 ];