ghgrab: enable tests on darwin

- add versionCheckHook

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij
2026-04-05 18:31:45 +05:30
parent 8e7387cbbe
commit bf9a894adc
+5 -7
View File
@@ -2,7 +2,7 @@
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
versionCheckHook,
}:
# note: upstream has a flake
@@ -19,18 +19,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-S1wkdPYVvH+4rfCQ/IohrqvHsiVWlb9OW5Dva3jNeis=";
# fails on darwin
# https://github.com/abhixdd/ghgrab/issues/31
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
"--skip=agent_tree_invalid_url_returns_json_error"
];
doInstallCheck = true;
versionCheckProgramArg = "--version";
nativeInstallCheckInputs = [ versionCheckHook ];
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";
maintainers = with lib.maintainers; [ phanirithvij ];
};
})