Commit f39a55e70d30

Vincent Demeester <vincent@sbr.pm>
2026-01-30 12:14:20
refactor: use x packages from chick-group instead of local
Remove local package definitions for lazypr, gh-pr, cliphist-cleanup, and nixpkgs-pr-watch. These are now provided by the chick-group overlay which already includes them. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4fe1ecb
Changed files (6)
pkgs/cliphist-cleanup/default.nix
@@ -1,30 +0,0 @@
-{
-  lib,
-  buildGoModule,
-  fetchFromGitHub,
-}:
-
-buildGoModule rec {
-  pname = "cliphist-cleanup";
-  version = "0.1.0";
-
-  src = fetchFromGitHub {
-    owner = "vdemeester";
-    repo = "x";
-    rev = "231e1c6b9fc6bcc27145d1393dc3a79caae4a739";
-    hash = "sha256-EUmTHIKolDIuprqg2h+FilMiTCFwa9m6TH+MD32ruGQ=";
-  };
-
-  vendorHash = "sha256-pVSP2SAXlmdxKl0DPPYzYoooex8b0XPA9rZwIyAkh1o=";
-
-  # Build only the cliphist-cleanup command
-  subPackages = [ "cmd/cliphist-cleanup" ];
-
-  meta = {
-    description = "Clean up cliphist clipboard history by pattern matching";
-    homepage = "https://github.com/vdemeester/x";
-    license = lib.licenses.mit;
-    platforms = lib.platforms.linux;
-    mainProgram = "cliphist-cleanup";
-  };
-}
pkgs/gh-pr/default.nix
@@ -1,58 +0,0 @@
-{
-  buildGoModule,
-  lib,
-  makeWrapper,
-  installShellFiles,
-  gh,
-  fzf,
-  jq,
-  fetchFromGitHub,
-}:
-
-buildGoModule rec {
-  pname = "gh-pr";
-  version = "0.1.0";
-
-  src = fetchFromGitHub {
-    owner = "vdemeester";
-    repo = "x";
-    rev = "231e1c6b9fc6bcc27145d1393dc3a79caae4a739";
-    hash = "sha256-EUmTHIKolDIuprqg2h+FilMiTCFwa9m6TH+MD32ruGQ=";
-  };
-
-  vendorHash = "sha256-pVSP2SAXlmdxKl0DPPYzYoooex8b0XPA9rZwIyAkh1o=";
-
-  nativeBuildInputs = [
-    makeWrapper
-    installShellFiles
-  ];
-
-  # Build the gh-pr command
-  subPackages = [ "cmd/gh-pr" ];
-
-  # Wrap binary to include gh, fzf, and jq in PATH and install completions
-  postInstall = ''
-    wrapProgram $out/bin/gh-pr \
-      --prefix PATH : ${
-        lib.makeBinPath [
-          gh
-          fzf
-          jq
-        ]
-      }
-
-    # Generate shell completions
-    installShellCompletion --cmd gh-pr \
-      --bash <($out/bin/gh-pr completion bash) \
-      --fish <($out/bin/gh-pr completion fish) \
-      --zsh <($out/bin/gh-pr completion zsh)
-  '';
-
-  meta = {
-    description = "GitHub Pull Request management tool";
-    homepage = "https://github.com/vdemeester/x";
-    license = lib.licenses.mit;
-    platforms = lib.platforms.unix;
-    mainProgram = "gh-pr";
-  };
-}
pkgs/lazypr/default.nix
@@ -1,38 +0,0 @@
-{
-  buildGoModule,
-  lib,
-  makeWrapper,
-  gh,
-  fetchFromGitHub,
-}:
-
-buildGoModule rec {
-  pname = "lazypr";
-  version = "0.1.0";
-
-  src = fetchFromGitHub {
-    owner = "vdemeester";
-    repo = "x";
-    rev = "e52c2493bcc2b0d5cb73a7f2eb11df0bf3387290";
-    hash = "sha256-lowbSOOo5z99F0EiTTg6GNzCEkW5jUdBi9Hr1LKHANs=";
-  };
-
-  vendorHash = "sha256-fqwK3YhczFFCxG+4u0Z3jjx54D0QWkhbNYlaFKkiUpI=";
-
-  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/nixpkgs-pr-watch/default.nix
@@ -1,38 +0,0 @@
-{
-  buildGoModule,
-  lib,
-  makeWrapper,
-  gh,
-  fetchFromGitHub,
-}:
-
-buildGoModule rec {
-  pname = "nixpkgs-pr-watch";
-  version = "0.1.0";
-
-  src = fetchFromGitHub {
-    owner = "vdemeester";
-    repo = "x";
-    rev = "231e1c6b9fc6bcc27145d1393dc3a79caae4a739";
-    hash = "sha256-EUmTHIKolDIuprqg2h+FilMiTCFwa9m6TH+MD32ruGQ=";
-  };
-
-  vendorHash = "sha256-pVSP2SAXlmdxKl0DPPYzYoooex8b0XPA9rZwIyAkh1o=";
-
-  nativeBuildInputs = [ makeWrapper ];
-
-  subPackages = [ "cmd/nixpkgs-pr-watch" ];
-
-  postInstall = ''
-    wrapProgram $out/bin/nixpkgs-pr-watch \
-      --prefix PATH : ${lib.makeBinPath [ gh ]}
-  '';
-
-  meta = {
-    description = "Watch nixpkgs PRs affecting your system packages";
-    homepage = "https://github.com/vdemeester/x";
-    license = lib.licenses.mit;
-    platforms = lib.platforms.unix;
-    mainProgram = "nixpkgs-pr-watch";
-  };
-}
pkgs/default.nix
@@ -23,12 +23,8 @@ in
   govanityurl = pkgs.callPackage ./govanityurl { };
   batzconverter = pkgs.callPackage ./batzconverter { };
   manifest-tool = pkgs.callPackage ./manifest-tool { };
-  gh-pr = pkgs.callPackage ./gh-pr { };
-  lazypr = pkgs.callPackage ./lazypr { };
-  nixpkgs-pr-watch = pkgs.callPackage ./nixpkgs-pr-watch { };
   arr = pkgs.callPackage ../tools/arr { };
   download-kiwix-zim = pkgs.callPackage ../tools/download-kiwix-zim { };
-  cliphist-cleanup = pkgs.callPackage ./cliphist-cleanup { };
   repo-find = pkgs.callPackage ./repo-find { };
   toggle-color-scheme = pkgs.callPackage ./toggle-color-scheme { };
   homepage = pkgs.callPackage ./homepage { inherit globals; };
flake.lock
@@ -124,11 +124,11 @@
         ]
       },
       "locked": {
-        "lastModified": 1769695387,
-        "narHash": "sha256-f84yPFc7rYbBnW+8shuZwZZFerH2kiZPjpqyqHu12Ow=",
+        "lastModified": 1769771525,
+        "narHash": "sha256-mKwIhqDIui2lgZqKIOH227cLu3mK9HIkJIkK4FRLwtM=",
         "owner": "vdemeester",
         "repo": "chick-group",
-        "rev": "ed34c8f078028d04882941e594fec650ab56f5e3",
+        "rev": "4cdfae3ec753148c11db72684e1fc3c740c3cefc",
         "type": "github"
       },
       "original": {