Commit ab2f911e95c5

Vincent Demeester <vincent@sbr.pm>
2026-01-27 14:47:43
feat(pkgs): add lazypr package
TUI for viewing GitHub pull requests from vdemeester/x repository. Added to kyushu and aomi home configurations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e11857f
Changed files (4)
pkgs/lazypr/default.nix
@@ -0,0 +1,38 @@
+{
+  buildGoModule,
+  lib,
+  makeWrapper,
+  gh,
+  fetchFromGitHub,
+}:
+
+buildGoModule rec {
+  pname = "lazypr";
+  version = "0.1.0";
+
+  src = fetchFromGitHub {
+    owner = "vdemeester";
+    repo = "x";
+    rev = "8919a56c0b24d89718d059cca152a8b597c67483";
+    hash = "sha256-pYHXjm4KxFtx7tMHAbOyINemdYZKD2odmCdwniz2gwA=";
+  };
+
+  vendorHash = "sha256-pEDRedENgfouTd9Mr58l5xRjMmW7MFzV1BQDP7+emYI=";
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  subPackages = [ "cmd/lazypr" ];
+
+  postInstall = ''
+    wrapProgram $out/bin/lazypr \
+      --prefix PATH : ${lib.makeBinPath [ gh ]}
+  '';
+
+  meta = {
+    description = "TUI for viewing GitHub pull requests";
+    homepage = "https://github.com/vdemeester/x";
+    license = lib.licenses.mit;
+    platforms = lib.platforms.unix;
+    mainProgram = "lazypr";
+  };
+}
pkgs/default.nix
@@ -24,6 +24,7 @@ in
   batzconverter = pkgs.callPackage ./batzconverter { };
   manifest-tool = pkgs.callPackage ./manifest-tool { };
   gh-pr = pkgs.callPackage ./gh-pr { };
+  lazypr = pkgs.callPackage ./lazypr { };
   arr = pkgs.callPackage ../tools/arr { };
   download-kiwix-zim = pkgs.callPackage ../tools/download-kiwix-zim { };
   cliphist-cleanup = pkgs.callPackage ./cliphist-cleanup { };
systems/aomi/home.nix
@@ -17,6 +17,7 @@
 
     go-org-readwise
     gh-pr
+    lazypr
     claude-hooks
 
     lazygit
systems/kyushu/home.nix
@@ -70,6 +70,7 @@ in
 
     go-org-readwise
     gh-pr
+    lazypr
     arr
     claude-hooks
     toggle-color-scheme