termshot: add versionCheckHook

This commit is contained in:
Defelo
2025-01-05 03:43:26 +01:00
parent 38d818f190
commit 0a5f59e7c4
+6 -6
View File
@@ -2,8 +2,7 @@
lib,
fetchFromGitHub,
buildGoModule,
testers,
termshot,
versionCheckHook,
nix-update-script,
}:
buildGoModule rec {
@@ -27,10 +26,11 @@ buildGoModule rec {
checkFlags = [ "-skip=^TestPtexec$" ];
passthru = {
tests.version = testers.testVersion { package = termshot; };
updateScript = nix-update-script { };
};
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Creates screenshots based on terminal command output";