fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
36 lines
889 B
Nix
36 lines
889 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "ticker";
|
|
version = "4.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "achannarasappa";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-EjQLJG1/AEnOKGcGh2C1HdRAVUnZLhehxTtpWlvD+jw=";
|
|
};
|
|
|
|
vendorHash = "sha256-bWdyypcIagbKTMnhT0X4UmoPVjyTasCSud6pX1L3oIc=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/achannarasappa/ticker/cmd.Version=v${version}"
|
|
];
|
|
|
|
# Tests require internet
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Terminal stock ticker with live updates and position tracking";
|
|
homepage = "https://github.com/achannarasappa/ticker";
|
|
changelog = "https://github.com/achannarasappa/ticker/releases/tag/v${version}";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ siraben sarcasticadmin ];
|
|
mainProgram = "ticker";
|
|
};
|
|
}
|