diff options
author | Emily <git@emilylange.de> | 2023-10-26 00:04:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-26 00:04:29 +0200 |
commit | 4879cb39898878d7ea29f98b74eaa89746e4a9c8 (patch) | |
tree | bb61d2d6d45c1a855fc8d2d6b5181bca04327bed /pkgs/by-name | |
parent | cf0f38c40322f2129e54429fe4d311f2013faa54 (diff) | |
parent | 0ede6c69721531256479f89eca50225fbf65372a (diff) |
Merge pull request #263170 from surfaceflinger/steamguard-improve
steamguard-cli: by-name + shell completions, 0.12.2 -> 0.12.3
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/st/steamguard-cli/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/by-name/st/steamguard-cli/package.nix b/pkgs/by-name/st/steamguard-cli/package.nix new file mode 100644 index 0000000000000..d93cfa4b281cb --- /dev/null +++ b/pkgs/by-name/st/steamguard-cli/package.nix @@ -0,0 +1,37 @@ +{ installShellFiles +, lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "steamguard-cli"; + version = "0.12.3"; + + src = fetchFromGitHub { + owner = "dyc3"; + repo = pname; + rev = "v${version}"; + hash = "sha256-qfyo63u6gBkGNxVBmFsz9YXs6duRU/VnFly40C13vI8="; + }; + + cargoHash = "sha256-B8/WCSHC905wDxYGLYVMT0QxgMiGR0/VMVzOlyTKPss="; + + 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."; + homepage = "https://github.com/dyc3/steamguard-cli"; + license = with licenses; [ gpl3Only ]; + mainProgram = "steamguard"; + maintainers = with maintainers; [ surfaceflinger ]; + platforms = platforms.linux; + }; +} |