Unverified Commit 3fde6e52 authored by ryoppippi's avatar ryoppippi
Browse files

gh-do: init at 0.5.4

gh-do is a GitHub CLI extension that allows you to "do and undo and
notify" with the GitHub CLI. It provides commands to perform actions
on GitHub resources with the ability to easily revert those actions.

Written in Go, it integrates seamlessly with the gh command line tool.

Homepage: https://github.com/k1LoW/gh-do
parent d46155ed
Loading
Loading
Loading
Loading
+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";
  };
})