Unverified Commit 70a8c795 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

gh-review-conductor: init at 1.3.0 (#480733)

parents b7e03335 9178d2ab
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  nix-update-script,
}:

buildGoModule (finalAttrs: {
  pname = "gh-review-conductor";
  version = "1.3.0";

  src = fetchFromGitHub {
    owner = "gh-tui-tools";
    repo = "gh-review-conductor";
    tag = "v${finalAttrs.version}";
    hash = "sha256-gNQmO+Sa9n+hfy5CBSPqSXhHTzZz8D1sLrNqs+z9Rx4=";
  };

  vendorHash = "sha256-xAOTSdyNRZDKDPnCrvaepBOTDrnHLEA53K5TBxkqbDM=";

  ldflags = [
    "-s"
    "-w"
    "-X github.com/gh-tui-tools/gh-review-conductor/cmd.version=${finalAttrs.version}"
  ];

  # Tests require GitHub authentication and network access
  doCheck = false;

  __structuredAttrs = true;

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

  meta = {
    description = "GitHub CLI extension to apply PR review comments and suggestions directly to your local code";
    homepage = "https://github.com/gh-tui-tools/gh-review-conductor";
    changelog = "https://github.com/gh-tui-tools/gh-review-conductor/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [
      vdemeester
      chmouel
    ];
    mainProgram = "gh-prreview";
  };
})