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

This commit is contained in:
Arne Keller
2025-03-31 16:54:30 +02:00
committed by GitHub
+6 -9
View File
@@ -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 { };