diff options
| author | seth <[email protected]> | 2023-10-07 10:10:55 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-10-07 10:18:46 -0400 |
| commit | 519191cd9f31d1fe1c205535ddc4efe5f2e63793 (patch) | |
| tree | 441a3b0cbf33a15ac052a1fd6a6894cf169f493b /pkgs/check-pr/default.nix | |
| parent | 62a26a94a11774b7c14ea10cde0ca2294990fb9b (diff) | |
treewide!: remove flake-parts
while i love flake parts, i want to keep dependencies for this project as small as possible
Diffstat (limited to 'pkgs/check-pr/default.nix')
| -rw-r--r-- | pkgs/check-pr/default.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/check-pr/default.nix b/pkgs/check-pr/default.nix new file mode 100644 index 0000000..b199669 --- /dev/null +++ b/pkgs/check-pr/default.nix @@ -0,0 +1,17 @@ +{ + lib, + writeShellApplication, +}: +writeShellApplication { + name = "check-pr"; + text = '' + _usage=" + usage: check-pr <owner/repo> <pr_id> [package] + " + + [ "$#" -lt 2 ] && echo -n "$_usage" && exit 1 + + nix run "github:$1?ref=pull/$2/head''${3:+#$3}" + ''; +} +// {meta.platforms = lib.platforms.all;} |
