forked from mirrors/nixpkgs
tydra: init at 1.0.2
This commit is contained in:
parent
d7b98129fe
commit
02f3a1ff52
34
pkgs/tools/misc/tydra/default.nix
Normal file
34
pkgs/tools/misc/tydra/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -7096,6 +7096,8 @@ in
|
|||
|
||||
txtw = callPackage ../tools/misc/txtw { };
|
||||
|
||||
tydra = callPackage ../tools/misc/tydra { };
|
||||
|
||||
u9fs = callPackage ../servers/u9fs { };
|
||||
|
||||
ua = callPackage ../tools/networking/ua { };
|
||||
|
|
Loading…
Reference in a new issue