2024-01-03 00:07:51 +01:00
|
|
|
{ rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pnpm-shell-completion";
|
2024-03-14 03:10:35 +01:00
|
|
|
version = "0.5.3";
|
2024-01-03 00:07:51 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "g-plane";
|
|
|
|
repo = "pnpm-shell-completion";
|
|
|
|
rev = "v${version}";
|
2024-03-14 03:10:35 +01:00
|
|
|
hash = "sha256-UKuAUN1uGNy/1Fm4vXaTWBClHgda+Vns9C4ugfHm+0s=";
|
2024-01-03 00:07:51 +01:00
|
|
|
};
|
|
|
|
|
2024-03-14 03:10:35 +01:00
|
|
|
cargoHash = "sha256-Kf28hQ5PUHeH5ZSRSRdfHljlqIYU8MN0zQsyT0Sa2+4=";
|
2024-01-03 00:07:51 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = /* bash */ ''
|
|
|
|
installShellCompletion --cmd pnpm \
|
2024-03-14 03:10:35 +01:00
|
|
|
--fish pnpm.fish \
|
2024-01-03 00:07:51 +01:00
|
|
|
--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";
|
|
|
|
};
|
|
|
|
}
|