From a6724b4e59ce6266be0c01562959df583c51fa48 Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Thu, 26 Mar 2026 01:38:01 +0530 Subject: [PATCH] ghgrab: init at 1.1.0 Signed-off-by: phanirithvij --- pkgs/by-name/gh/ghgrab/package.nix | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/gh/ghgrab/package.nix diff --git a/pkgs/by-name/gh/ghgrab/package.nix b/pkgs/by-name/gh/ghgrab/package.nix new file mode 100644 index 000000000000..1d360bd32066 --- /dev/null +++ b/pkgs/by-name/gh/ghgrab/package.nix @@ -0,0 +1,36 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + stdenv, +}: + +# note: upstream has a flake +rustPlatform.buildRustPackage (finalAttrs: { + pname = "ghgrab"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "abhixdd"; + repo = "ghgrab"; + tag = "v${finalAttrs.version}"; + hash = "sha256-09+DI1/jKfcbPNB1rUyXtu642TuU7z9UBbQllg9uoQM="; + }; + + cargoHash = "sha256-9o5AQxe/G5Yc6T/Ogtvq1N32t2eM8jAKt6CIvNBzX70="; + + # fails on darwin + # https://github.com/abhixdd/ghgrab/issues/31 + checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [ + "--skip=agent_tree_invalid_url_returns_json_error" + ]; + + meta = { + changelog = "https://github.com/abhixdd/ghgrab/releases/tag/v${finalAttrs.version}"; + description = "Simple, pretty terminal tool that lets you search and download files from GitHub without leaving your CLI"; + homepage = "https://github.com/abhixdd/ghgrab"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ phanirithvij ]; + mainProgram = "ghgrab"; + }; +})