mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
37 lines
889 B
Nix
37 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";
|
|
};
|
|
}
|