Unverified Commit d80cb302 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

go-crx3: 1.5.1 -> 1.6.0, add versionCheckHook (#394684)

parents 14367cc8 0f3235e9
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -4,18 +4,19 @@
  buildGoModule,
  fetchFromGitHub,
  installShellFiles,
  versionCheckHook,
  nix-update-script,
}:

buildGoModule (finalAttrs: {
  pname = "go-crx3";
  version = "1.5.1";
  version = "1.6.0";

  src = fetchFromGitHub {
    owner = "mmadfox";
    repo = "go-crx3";
    tag = "v${finalAttrs.version}";
    hash = "sha256-J3v3/Rz6rPTJnIEahWvJO6KGIC6idqJ/39wPC4zApbE=";
    hash = "sha256-XNUOnm898GtCIojWR4tCHZNDHhh+DfJvvBvTDBI8Wzg=";
  };

  vendorHash = "sha256-LEIB/VZA3rqTeH9SesZ/jrfVddl6xtmoRWHP+RwGmCk=";
@@ -39,14 +40,10 @@ buildGoModule (finalAttrs: {
      --zsh <($out/bin/crx3 completion zsh)
  '';

  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgram = "${placeholder "out"}/bin/crx3";
  versionCheckProgramArg = "version";
  doInstallCheck = true;
  installCheckPhase = ''
    runHook preInstallCheck

    $out/bin/crx3 --help >/dev/null

    runHook postInstallCheck
  '';

  passthru.updateScript = nix-update-script { };