571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
982 B
Nix
36 lines
982 B
Nix
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tydra";
|
|
version = "1.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mange";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bH/W54b7UHdkbgLXAd+l5I6UAKjWDMW+I5mfwT4yEEY=";
|
|
};
|
|
|
|
cargoHash = "sha256-emZWQHOgYUQzCa/SmztSLa19bB1aJpPUiBg2C7w6W8M=";
|
|
|
|
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 ];
|
|
mainProgram = "tydra";
|
|
};
|
|
}
|