1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/applications/misc/ticker/default.nix
2024-06-03 04:03:40 +00:00

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";
};
}