Price Hiller
22b9956f90
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m16s
28 lines
609 B
Nix
28 lines
609 B
Nix
{
|
|
installShellFiles,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "bob";
|
|
version = "3.0.1";
|
|
|
|
buildInputs = [ installShellFiles ];
|
|
src = fetchFromGitHub {
|
|
owner = "MordechaiHadad";
|
|
repo = "bob";
|
|
rev = "v${version}";
|
|
hash = "sha256-Op/NXWssylgAOb1BccSOz7JqXFranzAsGICFMF3o/K8=";
|
|
};
|
|
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)
|
|
'';
|
|
}
|