python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / tydra / default.nix
blobfd8e8e6ee5a842198a8460b3b672bdce861d5d72
1 { lib, rustPlatform, fetchFromGitHub, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
4   pname = "tydra";
5   version = "1.0.2";
7   src = fetchFromGitHub {
8     owner = "Mange";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "1kvyski3qy2lwlpipynq894i0g9x2j4a1iy2mgdwfibfyfkv2jnm";
12   };
14   cargoSha256 = "0handd5vxxvmlllzxhvwgadl4r7yc78f068r8jryprpap31azg3a";
16   nativeBuildInputs = [ installShellFiles ];
18   postInstall = ''
19     installManPage doc/{tydra.1,tydra-actions.5}
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
25     installShellCompletion tydra.{bash,fish} _tydra
26   '';
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   };