Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / ticker / default.nix
blobbb3322a27881417b92fef72da09c8aa420a6da60
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "ticker";
8   version = "4.5.14";
10   src = fetchFromGitHub {
11     owner = "achannarasappa";
12     repo = pname;
13     rev = "refs/tags/v${version}";
14     hash = "sha256-WpU0fxkdNqr8zF6eGOlbaV9dp6sZyNZ1J7Uq+yGBnUs=";
15   };
17   vendorHash = "sha256-c7wU9LLRlS9kOhE4yAiKAs/npQe8lvSwPcd+/D8o9rk=";
19   ldflags = [
20     "-s"
21     "-w"
22     "-X github.com/achannarasappa/ticker/cmd.Version=v${version}"
23   ];
25   # Tests require internet
26   doCheck = false;
28   meta = with lib; {
29     description = "Terminal stock ticker with live updates and position tracking";
30     homepage = "https://github.com/achannarasappa/ticker";
31     changelog = "https://github.com/achannarasappa/ticker/releases/tag/v${version}";
32     license = licenses.gpl3Plus;
33     maintainers = with maintainers; [ siraben sarcasticadmin ];
34   };