Unverified Commit 7399befd authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

ticker: fix version set at buildtime (#391684)

parents 59504972 78eb1a5d
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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";