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