Merge pull request #84636 from filalex77/tydra-1.0.2

tydra: init at 1.0.2
This commit is contained in:
Mario Rodas 2020-04-13 08:40:46 -05:00 committed by GitHub
commit ee90904d5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

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