From 1f4df0d3f7c50326e8d102a6ad48e7d1508a2cb9 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 7 Jul 2026 08:48:23 +0300 Subject: [PATCH] gh-pr-review: init at 1.6.2 https://github.com/agynio/gh-pr-review Assisted-by: nix-init --- pkgs/by-name/gh/gh-pr-review/package.nix | 42 ++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/gh/gh-pr-review/package.nix diff --git a/pkgs/by-name/gh/gh-pr-review/package.nix b/pkgs/by-name/gh/gh-pr-review/package.nix new file mode 100644 index 000000000000..6fe1bd89b079 --- /dev/null +++ b/pkgs/by-name/gh/gh-pr-review/package.nix @@ -0,0 +1,42 @@ +{ + lib, + stdenv, + buildGoModule, + fetchFromGitHub, + installShellFiles, +}: + +buildGoModule (finalAttrs: { + pname = "gh-pr-review"; + version = "1.6.2"; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "agynio"; + repo = "gh-pr-review"; + tag = "v${finalAttrs.version}"; + hash = "sha256-NVctUkxfYGs29T9naAfqbEhUXfhynx8Ajsh+V+4gCLw="; + }; + + vendorHash = "sha256-CEV23koYz0FpSWXJRF4J+dGNuDT8Ftkn4LGFftvd0ts="; + + nativeBuildInputs = lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ + installShellFiles + ]; + + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + installShellCompletion --cmd gh-pr-review \ + --zsh <($out/bin/gh-pr-review completion zsh) \ + --fish <($out/bin/gh-pr-review completion fish) \ + --bash <($out/bin/gh-pr-review completion bash) + ''; + + meta = { + description = "GitHub CLI extension that adds full inline PR review comment support"; + homepage = "https://github.com/agynio/gh-pr-review"; + changelog = "https://github.com/agynio/gh-pr-review/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ doronbehar ]; + mainProgram = "gh-pr-review"; + }; +})