about summary refs log tree commit diff
path: root/pkgs/by-name/gr/grafterm/package.nix
blob: a15ab6e5ed0ff33d23f1c7a41fba87733377701d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "grafterm";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "slok";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-0pM36rAmwx/P1KAlmVaGoSj8eb9JucYycNC2R867dVo=";
  };

  vendorHash = "sha256-veg5B68AQhkSZg8YA/e4FbqJNG0YGwnUQFsAdscz0QI=";

  ldflags = [ "-s" "-w" "-X main.Version=${version}" ];

  meta = with lib; {
    description = "Command-line tool for rendering metrics dashboards inspired by Grafana";
    homepage = "https://github.com/slok/grafterm";
    license = licenses.asl20;
    maintainers = with maintainers; [ arikgrahl ];
    mainProgram = "grafterm";
  };
}