From 613cfb6c7cd19d2a1419cd8a9c77d2938664e3bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Schwarz=C3=A4ugl?= Date: Fri, 12 Dec 2025 02:19:58 +0100 Subject: [PATCH] feat[client]: add prstatus --- SwarselSystems.org | 18 ++++++++++++++++++ modules/home/common/custom-packages.nix | 1 + pkgs/flake/prstatus/default.nix | 9 +++++++++ 3 files changed, 28 insertions(+) create mode 100644 pkgs/flake/prstatus/default.nix diff --git a/SwarselSystems.org b/SwarselSystems.org index d05ca45..d81fa1e 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -15674,6 +15674,7 @@ This is just a separate container for derivations defined in [[#h:64a5cc16-6b16- sshrm endme git-replace + prstatus ]; }; } @@ -22502,6 +22503,23 @@ This script allows for quick git branch switching. #+end_src +**** prstatus + +This script allows for quick checking of nixpkgs PR statuses. + +#+begin_src nix-ts :tangle pkgs/flake/prstatus/default.nix + { name, writeShellApplication, curl, ... }: + + writeShellApplication { + inherit name; + runtimeInputs = [ curl ]; + text = '' + curl https://nixpkgs.molybdenum.software/api/v2/landings/"$1" + ''; + } + +#+end_src + **** bak :PROPERTIES: :CUSTOM_ID: h:03b1b77b-3ca8-4a8f-8e28-9f29004d96d3 diff --git a/modules/home/common/custom-packages.nix b/modules/home/common/custom-packages.nix index 8efebe1..3c8f8ac 100644 --- a/modules/home/common/custom-packages.nix +++ b/modules/home/common/custom-packages.nix @@ -32,6 +32,7 @@ sshrm endme git-replace + prstatus ]; }; } diff --git a/pkgs/flake/prstatus/default.nix b/pkgs/flake/prstatus/default.nix new file mode 100644 index 0000000..b8a29fe --- /dev/null +++ b/pkgs/flake/prstatus/default.nix @@ -0,0 +1,9 @@ +{ name, writeShellApplication, curl, ... }: + +writeShellApplication { + inherit name; + runtimeInputs = [ curl ]; + text = '' + curl https://nixpkgs.molybdenum.software/api/v2/landings/"$1" + ''; +}