diff --git a/pkgs/by-name/gh/ghgrab/package.nix b/pkgs/by-name/gh/ghgrab/package.nix index def198f92320..1ed827e79dbd 100644 --- a/pkgs/by-name/gh/ghgrab/package.nix +++ b/pkgs/by-name/gh/ghgrab/package.nix @@ -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 ]; }; })