Unverified Commit f914796a authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

ghgrab: enable tests on darwin (#506933)

parents 9a0031ca bf9a894a
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -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 ];
  };
})