kbs2: 0.5.1 -> 0.6.0
https://github.com/woodruffw/kbs2/releases/tag/v0.6.0
This commit is contained in:
parent
7802f1b647
commit
dcb5e9baa0
|
@ -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; {
|
||||||
|
|
Loading…
Reference in a new issue