python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / page / default.nix
blob7d574586a8a33dc464d1e58340f8b59a7016df65
1 { lib, rustPlatform, fetchFromGitHub, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
4   pname = "page";
5   version = "3.1.2";
7   src = fetchFromGitHub {
8     owner = "I60R";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-e6GkvIojMfsIm4UxRyEvvNkZPGSmUnf9K/0ZISy8kj4=";
12   };
14   nativeBuildInputs = [ installShellFiles ];
15   postInstall = ''
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
20   '';
22   cargoSha256 = "sha256-qyaHW4mbJXZ/iGQlIzmTo2dgPLC9JlPKBee+uAuW5PQ=";
24   meta = with lib; {
25     description = "Use neovim as pager";
26     homepage = "https://github.com/I60R/page";
27     license = licenses.mit;
28     maintainers = [ maintainers.s1341 ];
29   };