2021-03-01 09:22:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-02-06 16:46:47 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ticker";
|
2023-02-27 00:24:06 +00:00
|
|
|
version = "4.5.6";
|
2021-02-06 16:46:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "achannarasappa";
|
2021-03-01 09:22:23 +00:00
|
|
|
repo = pname;
|
2023-01-21 17:42:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-02-27 00:24:06 +00:00
|
|
|
hash = "sha256-h7k/zAYqpCAGn2dW+a3gOF/BN5ywjy/2Yx6THK9zk6k=";
|
2021-02-06 16:46:47 +00:00
|
|
|
};
|
|
|
|
|
2023-02-27 00:24:06 +00:00
|
|
|
vendorHash = "sha256-c7wU9LLRlS9kOhE4yAiKAs/npQe8lvSwPcd+/D8o9rk=";
|
2021-02-06 16:46:47 +00:00
|
|
|
|
2021-08-21 08:23:47 +00:00
|
|
|
ldflags = [
|
2023-01-21 17:42:57 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/achannarasappa/ticker/cmd.Version=v${version}"
|
2021-08-21 08:23:47 +00:00
|
|
|
];
|
2021-03-01 09:22:23 +00:00
|
|
|
|
2021-02-06 16:46:47 +00:00
|
|
|
# Tests require internet
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal stock ticker with live updates and position tracking";
|
|
|
|
homepage = "https://github.com/achannarasappa/ticker";
|
2023-01-21 17:42:57 +00:00
|
|
|
changelog = "https://github.com/achannarasappa/ticker/releases/tag/v${version}";
|
2021-02-06 16:46:47 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
};
|
|
|
|
}
|