forked from extern/nix-config
packages: Add pnpm-shell-completion
Not perfect but works for my use case.
This commit is contained in:
parent
5c29be9a01
commit
ec53d3f5aa
@ -10,6 +10,7 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
(callPackage ./osu-backgrounds.nix { })
|
(callPackage ./osu-backgrounds.nix { })
|
||||||
(callPackage ./candy-icons.nix { })
|
(callPackage ./candy-icons.nix { })
|
||||||
|
(callPackage ./pnpm-shell-completion.nix { })
|
||||||
(callPackage ./webp-thumbnailer.nix { })
|
(callPackage ./webp-thumbnailer.nix { })
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
37
packages/pnpm-shell-completion.nix
Normal file
37
packages/pnpm-shell-completion.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{ rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, lib
|
||||||
|
, installShellFiles
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "pnpm-shell-completion";
|
||||||
|
version = "0.5.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "g-plane";
|
||||||
|
repo = "pnpm-shell-completion";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-VCIT1HobLXWRe3yK2F3NPIuWkyCgckytLPi6yQEsSIE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoHash = "sha256-SzB5hwh7rIxKM3O9ffQzrzCwbwqPQ+QZP7Pb5PNVqmE=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = /* bash */ ''
|
||||||
|
installShellCompletion --cmd pnpm \
|
||||||
|
--fish pnpm-shell-completion.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";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user