Commit 93763f857dd7
Changed files (3)
home
common
dev
pkgs
nixpkgs-pr-watch
home/common/dev/nix.nix
@@ -7,6 +7,7 @@
nix-update
nixpkgs-fmt
nixpkgs-review
+ nixpkgs-pr-watch
nixfmt-plus
nixfmt
nurl
pkgs/nixpkgs-pr-watch/default.nix
@@ -0,0 +1,38 @@
+{
+ 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
@@ -25,6 +25,7 @@ in
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 { };