Unverified Commit 485186f1 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

gh-do: init at 0.5.4 (#471786)

parents 7ec39afd 3fde6e52
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -23069,6 +23069,11 @@
    githubId = 3280280;
    name = "Ryne Everett";
  };
  ryoppippi = {
    github = "ryoppippi";
    githubId = 1560508;
    name = "ryoppippi";
  };
  ryota-ka = {
    email = "ok@ryota-ka.me";
    github = "ryota-ka";
+37 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildGoModule,
  nix-update-script,
}:

buildGoModule (finalAttrs: {
  pname = "gh-do";
  version = "0.5.4";

  src = fetchFromGitHub {
    owner = "k1LoW";
    repo = "gh-do";
    tag = "v${finalAttrs.version}";
    hash = "sha256-TzdaQ/E9D3gB1Q84SCRetLoA95c/BjJlgfZGbntjCVU=";
  };

  vendorHash = "sha256-TPHDiMzJtXXRBFd8lacXeMC+AB1Gc1pMyJPJeVLCkKo=";

  ldflags = [
    "-s"
    "-w"
    "-X main.version=${finalAttrs.version}"
  ];

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Do and undo and notify with GitHub CLI";
    homepage = "https://github.com/k1LoW/gh-do";
    changelog = "https://github.com/k1LoW/gh-do/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ryoppippi ];
    mainProgram = "gh-do";
  };
})