sesh: fix version command and add version check

This commit is contained in:
t-monaghan
2025-08-23 12:08:26 +10:00
parent 92d23e0262
commit b29384f7f9
+6
View File
@@ -2,6 +2,7 @@
lib,
fetchFromGitHub,
buildGoModule,
versionCheckHook,
}:
buildGoModule rec {
pname = "sesh";
@@ -19,8 +20,13 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckKeepEnvironment = [ "HOME" ];
doInstallCheck = true;
meta = {
description = "Smart session manager for the terminal";
homepage = "https://github.com/joshmedeski/sesh";