mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
page: init at 2.3.4
This commit is contained in:
parent
4c7467a9e4
commit
f1090bdaf8
32
pkgs/tools/misc/page/default.nix
Normal file
32
pkgs/tools/misc/page/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "page";
|
||||
version = "2.3.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "I60R";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0xcbnl8fbdfdmcbv5d7v830aa3vfhg7nlf768rbrfd5a0970pllh";
|
||||
};
|
||||
|
||||
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 = "0ckfmqi6jvbvj99vbdp798mmy6gc54254n32br0ri842b04i26qf";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Use neovim as pager";
|
||||
homepage = "https://github.com/I60R/page";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.s1341 ];
|
||||
};
|
||||
}
|
|
@ -5704,6 +5704,8 @@ in
|
|||
|
||||
padthv1 = libsForQt5.callPackage ../applications/audio/padthv1 { };
|
||||
|
||||
page = callPackage ../tools/misc/page { };
|
||||
|
||||
pagmo2 = callPackage ../development/libraries/pagmo2 { };
|
||||
|
||||
pakcs = callPackage ../development/compilers/pakcs { };
|
||||
|
|
Loading…
Reference in a new issue