diff --git a/pkgs/tools/misc/grafterm/default.nix b/pkgs/tools/misc/grafterm/default.nix new file mode 100644 index 000000000000..f21a8ba76fc5 --- /dev/null +++ b/pkgs/tools/misc/grafterm/default.nix @@ -0,0 +1,27 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 155a359be04e..3b8de739bd09 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7158,6 +7158,8 @@ with pkgs; gptfdisk = callPackage ../tools/system/gptfdisk { }; + grafterm = callPackage ../tools/misc/grafterm { }; + grafx2 = callPackage ../applications/graphics/grafx2 {}; grails = callPackage ../development/web/grails { jdk = null; };