diff options
author | Donovan Glover <donovan@dglover.co> | 2024-03-13 06:54:00 -0400 |
---|---|---|
committer | Donovan Glover <donovan@dglover.co> | 2024-03-13 07:11:28 -0400 |
commit | f0e834c7ce2344ef62a2000a5a06593969ce9ce3 (patch) | |
tree | 5d17e0f9862a527619544d3b76b86dbfef8c2638 /pkgs/by-name/pn | |
parent | eb4f8bd5bb4fba814205693346bf5aaf9d17dfb0 (diff) |
pnpm-shell-completion: init at 0.5.3
Diffstat (limited to 'pkgs/by-name/pn')
-rw-r--r-- | pkgs/by-name/pn/pnpm-shell-completion/package.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/pn/pnpm-shell-completion/package.nix b/pkgs/by-name/pn/pnpm-shell-completion/package.nix new file mode 100644 index 0000000000000..b789a1024a721 --- /dev/null +++ b/pkgs/by-name/pn/pnpm-shell-completion/package.nix @@ -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"; + }; +} |