nixpkgs/pkgs/applications/misc/ticker/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
890 B
Nix
Raw Normal View History

2021-03-01 09:22:23 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2021-02-06 16:46:47 +00:00
buildGoModule rec {
pname = "ticker";
2023-06-07 06:43:43 +00:00
version = "4.5.14";
2021-02-06 16:46:47 +00:00
src = fetchFromGitHub {
owner = "achannarasappa";
2021-03-01 09:22:23 +00:00
repo = pname;
2023-01-21 17:42:57 +00:00
rev = "refs/tags/v${version}";
2023-06-07 06:43:43 +00:00
hash = "sha256-WpU0fxkdNqr8zF6eGOlbaV9dp6sZyNZ1J7Uq+yGBnUs=";
2021-02-06 16:46:47 +00:00
};
2023-02-27 00:24:06 +00:00
vendorHash = "sha256-c7wU9LLRlS9kOhE4yAiKAs/npQe8lvSwPcd+/D8o9rk=";
2021-02-06 16:46:47 +00:00
2021-08-21 08:23:47 +00:00
ldflags = [
2023-01-21 17:42:57 +00:00
"-s"
"-w"
"-X github.com/achannarasappa/ticker/cmd.Version=v${version}"
2021-08-21 08:23:47 +00:00
];
2021-03-01 09:22:23 +00:00
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";
2023-01-21 17:42:57 +00:00
changelog = "https://github.com/achannarasappa/ticker/releases/tag/v${version}";
2021-02-06 16:46:47 +00:00
license = licenses.gpl3Plus;
2023-06-07 06:45:23 +00:00
maintainers = with maintainers; [ siraben sarcasticadmin ];
2024-02-11 02:19:15 +00:00
mainProgram = "ticker";
2021-02-06 16:46:47 +00:00
};
}