mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 07:31:20 +00:00
35 lines
969 B
Nix
35 lines
969 B
Nix
{ 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 ];
|
|
};
|
|
}
|