depot/pkgs/by-name/pn/pnpm-shell-completion/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

36 lines
872 B
Nix

{
rustPlatform,
fetchFromGitHub,
lib,
installShellFiles,
}:
rustPlatform.buildRustPackage rec {
pname = "pnpm-shell-completion";
version = "0.5.4";
src = fetchFromGitHub {
owner = "g-plane";
repo = "pnpm-shell-completion";
rev = "v${version}";
hash = "sha256-bc2ZVHQF+lSAmhy/fvdiVfg9uzPPcXYrtiNChjkjHtA=";
};
cargoHash = "sha256-pGACCT96pTG4ZcJZtSWCup7Iejf6r3RvQ+4tMOwiShw=";
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";
};
}