3
0
Fork 0
forked from mirrors/nixpkgs

tydra: init at 1.0.2

This commit is contained in:
Oleksii Filonenko 2020-04-07 20:28:19 +03:00
parent d7b98129fe
commit 02f3a1ff52
No known key found for this signature in database
GPG key ID: F3510FE5691629A1
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ stdenv, rustPlatform, fetchFromGitHub, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "tydra";
version = "1.0.2";
src = fetchFromGitHub {
owner = "Mange";
repo = pname;
rev = "v${version}";
sha256 = "1kvyski3qy2lwlpipynq894i0g9x2j4a1iy2mgdwfibfyfkv2jnm";
};
cargoSha256 = "11l3fvym16wrrpm9vy4asmqdh8qynwjy0w4gx2bbcnc6300ag43a";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage doc/{tydra.1,tydra-actions.5}
$out/bin/tydra --generate-completions bash > tydra.bash
$out/bin/tydra --generate-completions fish > tydra.fish
$out/bin/tydra --generate-completions zsh > _tydra
installShellCompletion tydra.{bash,fish} _tydra
'';
meta = with stdenv.lib; {
description = "Shortcut menu-based task runner, inspired by Emacs Hydra";
homepage = "https://github.com/Mange/tydra";
license = licenses.mit;
maintainers = with maintainers; [ filalex77 ];
};
}

View file

@ -7096,6 +7096,8 @@ in
txtw = callPackage ../tools/misc/txtw { };
tydra = callPackage ../tools/misc/tydra { };
u9fs = callPackage ../servers/u9fs { };
ua = callPackage ../tools/networking/ua { };