ticker: fix version set at buildtime (#391684)

This commit is contained in:
Aleksana
2025-03-26 20:48:39 +08:00
committed by GitHub
+9 -1
View File
@@ -2,6 +2,8 @@
lib,
buildGoModule,
fetchFromGitHub,
ticker,
testers,
}:
buildGoModule rec {
@@ -20,12 +22,18 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X github.com/achannarasappa/ticker/cmd.Version=v${version}"
"-X github.com/achannarasappa/ticker/v4/cmd.Version=${version}"
];
# Tests require internet
doCheck = false;
passthru.tests.version = testers.testVersion {
package = ticker;
command = "ticker --version";
inherit version;
};
meta = with lib; {
description = "Terminal stock ticker with live updates and position tracking";
homepage = "https://github.com/achannarasappa/ticker";