2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-02-19 19:06:45 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ticker";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "4.5.10";
|
2021-02-19 19:06:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "achannarasappa";
|
2021-03-09 03:18:52 +00:00
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-2CELRY6V7/6PcC5s4XjOqadxXc5SbS0vstqLEej3xnI=";
|
2021-02-19 19:06:45 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
vendorHash = "sha256-c7wU9LLRlS9kOhE4yAiKAs/npQe8lvSwPcd+/D8o9rk=";
|
2021-02-19 19:06:45 +00:00
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
ldflags = [
|
2023-02-02 18:25:31 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/achannarasappa/ticker/cmd.Version=v${version}"
|
2021-08-22 07:53:02 +00:00
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +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-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/achannarasappa/ticker/releases/tag/v${version}";
|
2021-02-19 19:06:45 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
};
|
|
|
|
}
|