2021-03-01 09:22:23 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-02-06 16:46:47 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ticker";
|
2021-03-13 15:33:28 +00:00
|
|
|
version = "4.0.3";
|
2021-02-06 16:46:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "achannarasappa";
|
2021-03-01 09:22:23 +00:00
|
|
|
repo = pname;
|
2021-02-06 16:46:47 +00:00
|
|
|
rev = "v${version}";
|
2021-03-13 15:33:28 +00:00
|
|
|
sha256 = "sha256-YVpspFBwao/7M2nTVMw+ANc0roL0vBO4DpNUb7Thp3Q=";
|
2021-02-06 16:46:47 +00:00
|
|
|
};
|
|
|
|
|
2021-03-13 15:33:28 +00:00
|
|
|
vendorSha256 = "sha256-nidOIjrTL4llV5GORebXOOPGeL6TxkurDY82cIc7+mU=";
|
2021-02-06 16:46:47 +00:00
|
|
|
|
2021-03-01 09:22:23 +00:00
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=("-ldflags" "-s -w -X github.com/achannarasappa/ticker/cmd.Version=v${version}")
|
|
|
|
'';
|
|
|
|
|
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";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
};
|
|
|
|
}
|