3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/tydra/default.nix
Daniël de Kok 85f96822a0 treewide: fix cargoSha256/cargoHash
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in
which cargo vendor erroneously changed permissions of vendored
crates. This was fixed in Rust
1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all
cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are
potentially broken.

This change updates cargoSha256/cargoHash tree-wide.

Fixes #121994.
2021-05-08 00:36:37 -07:00

35 lines
959 B
Nix

{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
rustPlatform.buildRustPackage rec {
pname = "tydra";
version = "1.0.2";
src = fetchFromGitHub {
owner = "Mange";
repo = pname;
rev = "v${version}";
sha256 = "1kvyski3qy2lwlpipynq894i0g9x2j4a1iy2mgdwfibfyfkv2jnm";
};
cargoSha256 = "0handd5vxxvmlllzxhvwgadl4r7yc78f068r8jryprpap31azg3a";
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 lib; {
description = "Shortcut menu-based task runner, inspired by Emacs Hydra";
homepage = "https://github.com/Mange/tydra";
license = licenses.mit;
maintainers = with maintainers; [ Br1ght0ne ];
};
}