Skip to content

Commit

Permalink
termshot: 0.3.0 -> 0.4.0 and add versionCheckHook (#371044)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRTitor authored Jan 5, 2025
2 parents 742e839 + 0a5f59e commit e981f5e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions pkgs/by-name/te/termshot/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,35 @@
lib,
fetchFromGitHub,
buildGoModule,
testers,
termshot,
versionCheckHook,
nix-update-script,
}:
buildGoModule rec {
pname = "termshot";
version = "0.3.0";
version = "0.4.0";

src = fetchFromGitHub {
owner = "homeport";
repo = "termshot";
tag = "v${version}";
hash = "sha256-vvSUdXVLuc3GmxPX9SzSeb8vbmqjhSLjXd9nmU7Q46g=";
hash = "sha256-x2XVA686E3GPMz1hzTWZ1FqVflfPWTwbAf8JAG8HMp0=";
};

vendorHash = "sha256-nXAIU07SY/GdWZGASHXDg36cSGKw4elLOBDCoJk/xlU=";
vendorHash = "sha256-ON3dmwf9IYEf+e4Z5EJ72wC4IIr/0/ssgzAJmRb7MSk=";

ldflags = [
"-s"
"-w"
"-X github.com/homeport/termshot/internal/cmd.version=${version}"
];

passthru = {
tests.version = testers.testVersion { package = termshot; };
updateScript = nix-update-script { };
};
checkFlags = [ "-skip=^TestPtexec$" ];

nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;

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

meta = {
description = "Creates screenshots based on terminal command output";
Expand Down

0 comments on commit e981f5e

Please sign in to comment.