mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 21:44:49 +00:00
steamguard-cli: setup shell completions
This commit is contained in:
parent
e12d996eb3
commit
c7d9444e92
@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
{ installShellFiles
|
||||
, lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
@ -16,6 +17,14 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-qQA7UdtFqGPyCRHdV+FfbQFiPaOeW4rT4dYC3BeHDw0=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd steamguard \
|
||||
--bash <($out/bin/steamguard completion --shell bash) \
|
||||
--fish <($out/bin/steamguard completion --shell fish) \
|
||||
--zsh <($out/bin/steamguard completion --shell zsh) \
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/dyc3/steamguard-cli/releases/tag/v${version}";
|
||||
description = "A linux utility for generating 2FA codes for Steam and managing Steam trade confirmations.";
|
||||
|
Loading…
Reference in New Issue
Block a user