Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / pn / pnpm-shell-completion / package.nix
blob3ec44b2e175d8ceb3ac4dadd14cd306287d44a58
2   rustPlatform,
3   fetchFromGitHub,
4   lib,
5   installShellFiles,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "pnpm-shell-completion";
10   version = "0.5.4";
12   src = fetchFromGitHub {
13     owner = "g-plane";
14     repo = "pnpm-shell-completion";
15     rev = "v${version}";
16     hash = "sha256-bc2ZVHQF+lSAmhy/fvdiVfg9uzPPcXYrtiNChjkjHtA=";
17   };
19   cargoHash = "sha256-pGACCT96pTG4ZcJZtSWCup7Iejf6r3RvQ+4tMOwiShw=";
21   nativeBuildInputs = [ installShellFiles ];
23   postInstall = ''
24     installShellCompletion --cmd pnpm \
25       --fish pnpm.fish \
26       --zsh pnpm-shell-completion.plugin.zsh
27   '';
29   meta = with lib; {
30     homepage = "https://github.com/g-plane/pnpm-shell-completion";
31     description = "Complete your pnpm command fastly";
32     license = licenses.mit;
33     maintainers = with maintainers; [ donovanglover ];
34     mainProgram = "pnpm-shell-completion";
35   };