sesh: fixes version command (#431945)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user