2021-01-25 08:26:54 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
|
2020-04-07 17:28:19 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "tydra";
|
|
|
|
version = "1.0.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mange";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1kvyski3qy2lwlpipynq894i0g9x2j4a1iy2mgdwfibfyfkv2jnm";
|
|
|
|
};
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "0handd5vxxvmlllzxhvwgadl4r7yc78f068r8jryprpap31azg3a";
|
2020-04-07 17:28:19 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-07 17:28:19 +00:00
|
|
|
description = "Shortcut menu-based task runner, inspired by Emacs Hydra";
|
|
|
|
homepage = "https://github.com/Mange/tydra";
|
|
|
|
license = licenses.mit;
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2020-04-07 17:28:19 +00:00
|
|
|
};
|
|
|
|
}
|