2021-03-01 10:22:23 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2021-02-06 17:46:47 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ticker";
|
2021-06-20 16:27:10 +02:00
|
|
|
version = "4.2.0";
|
2021-02-06 17:46:47 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "achannarasappa";
|
2021-03-01 10:22:23 +01:00
|
|
|
repo = pname;
|
2021-02-06 17:46:47 +01:00
|
|
|
rev = "v${version}";
|
2021-06-20 16:27:10 +02:00
|
|
|
sha256 = "sha256-FavbBGmChWQ3xySPHlw5HisZwVaNe/NaxA6+InN8fL8=";
|
2021-02-06 17:46:47 +01:00
|
|
|
};
|
|
|
|
|
2021-06-20 16:27:10 +02:00
|
|
|
vendorSha256 = "sha256-XBfTVd3X3IDxLCAaNnijf6E5bw+AZ94UdOG9w7BOdBU=";
|
2021-02-06 17:46:47 +01:00
|
|
|
|
2021-03-01 10:22:23 +01:00
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=("-ldflags" "-s -w -X github.com/achannarasappa/ticker/cmd.Version=v${version}")
|
|
|
|
'';
|
|
|
|
|
2021-02-06 17:46:47 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|