From 0fc48fd45f756534648d989f5a2c4f3060464218 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 24 Dec 2023 04:20:53 -0500 Subject: pkgs: auto-import directories *and* files --- pkgs/check-pr.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pkgs/check-pr.nix (limited to 'pkgs/check-pr.nix') diff --git a/pkgs/check-pr.nix b/pkgs/check-pr.nix new file mode 100644 index 0000000..fca30b1 --- /dev/null +++ b/pkgs/check-pr.nix @@ -0,0 +1,13 @@ +{writeShellApplication}: +writeShellApplication { + name = "check-pr"; + text = '' + _usage=" + usage: check-pr [package] + " + + [ "$#" -lt 2 ] && echo -n "$_usage" && exit 1 + + nix run "github:$1?ref=pull/$2/head''${3:+#$3}" + ''; +} -- cgit v1.2.3