mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #84636 from filalex77/tydra-1.0.2
tydra: init at 1.0.2
This commit is contained in:
commit
ee90904d5e
2 changed files with 36 additions and 0 deletions
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 ];
|
||||
};
|
||||
}
|
|
@ -7103,6 +7103,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