sesh: fixes version command (#431945)

This commit is contained in:
Jenny
2025-08-23 04:23:13 +02:00
committed by GitHub
2 changed files with 16 additions and 1 deletions
+6
View File
@@ -24774,6 +24774,12 @@
githubId = 143103;
name = "Attila Sztupak";
};
t-monaghan = {
email = "tomaghan@gmail.com";
github = "t-monaghan";
githubId = 62273348;
name = "Thomas Monaghan";
};
t184256 = {
email = "monk@unboiled.info";
github = "t184256";
+10 -1
View File
@@ -2,6 +2,7 @@
lib,
fetchFromGitHub,
buildGoModule,
versionCheckHook,
}:
buildGoModule rec {
pname = "sesh";
@@ -19,14 +20,22 @@ 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";
changelog = "https://github.com/joshmedeski/sesh/releases/tag/${src.rev}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ gwg313 ];
maintainers = with lib.maintainers; [
gwg313
t-monaghan
];
mainProgram = "sesh";
};
}