lol
1{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "tydra";
5 version = "1.0.2";
6
7 src = fetchFromGitHub {
8 owner = "Mange";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1kvyski3qy2lwlpipynq894i0g9x2j4a1iy2mgdwfibfyfkv2jnm";
12 };
13
14 cargoSha256 = "0handd5vxxvmlllzxhvwgadl4r7yc78f068r8jryprpap31azg3a";
15
16 nativeBuildInputs = [ installShellFiles ];
17
18 postInstall = ''
19 installManPage doc/{tydra.1,tydra-actions.5}
20
21 $out/bin/tydra --generate-completions bash > tydra.bash
22 $out/bin/tydra --generate-completions fish > tydra.fish
23 $out/bin/tydra --generate-completions zsh > _tydra
24
25 installShellCompletion tydra.{bash,fish} _tydra
26 '';
27
28 meta = with lib; {
29 description = "Shortcut menu-based task runner, inspired by Emacs Hydra";
30 homepage = "https://github.com/Mange/tydra";
31 license = licenses.mit;
32 maintainers = with maintainers; [ Br1ght0ne ];
33 };
34}