2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-02-19 19:06:45 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ticker";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "4.5.14";
|
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-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-WpU0fxkdNqr8zF6eGOlbaV9dp6sZyNZ1J7Uq+yGBnUs=";
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ siraben sarcasticadmin ];
|
2021-02-19 19:06:45 +00:00
|
|
|
};
|
|
|
|
}
|