From 7ed0e6a1aaeed6c9407dd533a4aabb6b521ec464 Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Tue, 14 Apr 2026 01:12:52 -0400 Subject: [PATCH] gh-stack: init at 0.0.1 Homepage: https://github.github.com/gh-stack/ Changelog: https://github.com/github/gh-stack/releases/tag/v0.0.1 Download Page: https://github.com/github/gh-stack Signed-off-by: Ethan Carter Edwards --- pkgs/by-name/gh/gh-stack/package.nix | 43 ++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/gh/gh-stack/package.nix diff --git a/pkgs/by-name/gh/gh-stack/package.nix b/pkgs/by-name/gh/gh-stack/package.nix new file mode 100644 index 000000000000..0cd86ef853ac --- /dev/null +++ b/pkgs/by-name/gh/gh-stack/package.nix @@ -0,0 +1,43 @@ +{ + lib, + fetchFromGitHub, + buildGoModule, + versionCheckHook, + nix-update-script, +}: + +buildGoModule (finalAttrs: { + pname = "gh-stack"; + version = "0.0.1"; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "github"; + repo = "gh-stack"; + tag = "v${finalAttrs.version}"; + hash = "sha256-om7ekHez08X1YjP0W+3p0PxmjU/za6+/gHX5GPakKAw="; + }; + + vendorHash = "sha256-s85Lz6yfY1TiIFPolU1qESDyw8XoBORyuOMdiHj6Grc="; + + ldflags = [ + "-s" + "-w" + "-X=github.com/github/gh-stack/cmd.Version=${finalAttrs.version}" + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "GitHub CLI extension to use stacked PRs"; + homepage = "https://github.github.com/gh-stack/"; + downloadPage = "https://github.com/github/gh-stack/"; + changelog = "https://github.com/github/gh-stack/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ethancedwards8 ]; + mainProgram = "gh-stack"; + }; +})