1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "grafterm";
9 version = "0.2.0";
10
11 src = fetchFromGitHub {
12 owner = "slok";
13 repo = "grafterm";
14 rev = "v${version}";
15 hash = "sha256-0pM36rAmwx/P1KAlmVaGoSj8eb9JucYycNC2R867dVo=";
16 };
17
18 vendorHash = "sha256-veg5B68AQhkSZg8YA/e4FbqJNG0YGwnUQFsAdscz0QI=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X main.Version=${version}"
24 ];
25
26 meta = with lib; {
27 description = "Command-line tool for rendering metrics dashboards inspired by Grafana";
28 homepage = "https://github.com/slok/grafterm";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ arikgrahl ];
31 mainProgram = "grafterm";
32 };
33}