Unverified Commit 0c3eea98 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

gh-token: init at 2.0.7 (#490481)

parents b4d0b0a0 d138280c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -19389,6 +19389,12 @@
    github = "0xnook";
    githubId = 88323754;
  };
  norbertwnuk = {
    name = "Norbert Wnuk";
    email = "norbert.wnuk@gmail.com";
    github = "norbertwnuk";
    githubId = 70071;
  };
  norfair = {
    email = "syd@cs-syd.eu";
    github = "NorfairKing";
+32 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule rec {
  pname = "gh-token";
  version = "2.0.7";

  src = fetchFromGitHub {
    owner = "Link-";
    repo = "gh-token";
    rev = "v${version}";
    hash = "sha256-ufpQQgXaL28lPPLotZZneJPWWAy80Jd6hNeKX81aa98=";
  };

  vendorHash = "sha256-gUPNHSeI8B5hwnIo7gwGo5aP4j7rzgveZIksyNe65jM=";

  ldflags = [
    "-s"
    "-w"
  ];

  meta = {
    description = "Manage installation access tokens for GitHub apps from your terminal";
    homepage = "https://github.com/Link-/gh-token";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ norbertwnuk ];
    mainProgram = "gh-token";
  };
}