pnpm-shell-completion: init at 0.5.3

This commit is contained in:
Donovan Glover 2024-03-13 06:54:00 -04:00
parent eb4f8bd5bb
commit f0e834c7ce
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{
rustPlatform,
fetchFromGitHub,
lib,
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
pname = "pnpm-shell-completion";
version = "0.5.3";
src = fetchFromGitHub {
owner = "g-plane";
repo = "pnpm-shell-completion";
rev = "v${version}";
hash = "sha256-UKuAUN1uGNy/1Fm4vXaTWBClHgda+Vns9C4ugfHm+0s=";
};
cargoHash = "sha256-Kf28hQ5PUHeH5ZSRSRdfHljlqIYU8MN0zQsyT0Sa2+4=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd pnpm \
--fish pnpm.fish \
--zsh pnpm-shell-completion.plugin.zsh
'';
meta = with lib; {
homepage = "https://github.com/g-plane/pnpm-shell-completion";
description = "Complete your pnpm command fastly";
license = licenses.mit;
maintainers = with maintainers; [ donovanglover ];
mainProgram = "pnpm-shell-completion";
};
}