feat(nix/pkgs): add shell completions for bob-nvim
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
This commit is contained in:
parent
fe008d81cf
commit
9086ce9759
@ -1,9 +1,11 @@
|
|||||||
{ rustPlatform, fetchFromGitHub }:
|
{ installShellFiles, rustPlatform, fetchFromGitHub }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "bob";
|
pname = "bob";
|
||||||
version = "3.0.1";
|
version = "3.0.1";
|
||||||
|
|
||||||
|
|
||||||
|
buildInputs = [ installShellFiles ];
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "MordechaiHadad";
|
owner = "MordechaiHadad";
|
||||||
repo = "bob";
|
repo = "bob";
|
||||||
@ -11,4 +13,12 @@ rustPlatform.buildRustPackage rec {
|
|||||||
hash = "sha256-Op/NXWssylgAOb1BccSOz7JqXFranzAsGICFMF3o/K8=";
|
hash = "sha256-Op/NXWssylgAOb1BccSOz7JqXFranzAsGICFMF3o/K8=";
|
||||||
};
|
};
|
||||||
cargoLock.lockFile = "${src}/Cargo.lock";
|
cargoLock.lockFile = "${src}/Cargo.lock";
|
||||||
|
|
||||||
|
postInstall = # bash
|
||||||
|
''
|
||||||
|
installShellCompletion --cmd bob \
|
||||||
|
--bash <($out/bin/bob complete bash) \
|
||||||
|
--zsh <($out/bin/bob complete zsh) \
|
||||||
|
--fish <($out/bin/bob complete fish)
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user