Unverified Commit 0a5f59e7 authored by Defelo's avatar Defelo
Browse files

termshot: add versionCheckHook

parent 38d818f1
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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";