Merge pull request #180917 from marsam/update-kbs2

kbs2: 0.5.1 -> 0.6.0
This commit is contained in:
Mario Rodas 2022-07-09 22:54:24 -05:00 committed by GitHub
commit de5b3dd170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec {
pname = "kbs2";
version = "0.5.1";
version = "0.6.0";
src = fetchFromGitHub {
owner = "woodruffw";
repo = pname;
rev = "v${version}";
sha256 = "sha256-GKjumkeo7aAYaECa6NoXCiXU2kqekBX3wCysRz8seW4=";
sha256 = "sha256-clbd4xHHGpFIr4s3Jocw4oQ3GbyGWMxZEVgj6JpVK94=";
};
cargoSha256 = "sha256-rJ110kd18V2VGj0AHix3/vI09FG2kJ+TTOYKIthIrjQ=";
cargoSha256 = "sha256-gfrC9TOs/Vz3K1gVr6MJ1QAKCE5WOD8VZ/tjOw3Y1uI=";
nativeBuildInputs = [ installShellFiles ]
++ lib.optionals stdenv.isLinux [ python3 ];
@ -30,10 +30,10 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
mkdir -p $out/share/kbs2
cp -r contrib/ $out/share/kbs2
for shell in bash fish zsh; do
$out/bin/kbs2 --completions $shell > kbs2.$shell
installShellCompletion kbs2.$shell
done
installShellCompletion --cmd kbs2 \
--bash <($out/bin/kbs2 --completions bash) \
--fish <($out/bin/kbs2 --completions fish) \
--zsh <($out/bin/kbs2 --completions zsh)
'';
meta = with lib; {