diff --git a/pkgs/servers/monitoring/grafana-reporter/default.nix b/pkgs/servers/monitoring/grafana-reporter/default.nix new file mode 100644 index 000000000000..03ed37b8b3f5 --- /dev/null +++ b/pkgs/servers/monitoring/grafana-reporter/default.nix @@ -0,0 +1,32 @@ +{ stdenv, buildGoPackage, fetchFromGitHub, tetex, makeWrapper }: + +with stdenv.lib; + +buildGoPackage rec { + name = "reporter-${version}"; + version = "2.0.1"; + rev = "v${version}"; + + goPackagePath = "github.com/IzakMarais/reporter"; + + nativeBuildInputs = [ makeWrapper ]; + + src = fetchFromGitHub { + inherit rev; + owner = "IzakMarais"; + repo = "reporter"; + sha256 = "0yi7nx8ig5xgkwizddl0gdicnmcdp4qgg1fdxyq04l2y3qs176sg"; + }; + + postInstall = '' + wrapProgram $bin/bin/grafana-reporter \ + --prefix PATH : ${makeBinPath [ tetex ]} + ''; + + meta = { + description = "PDF report generator from a Grafana dashboard"; + homepage = https://github.com/IzakMarais/reporter; + license = licenses.mit; + maintainers = with maintainers; [ disassembler ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9a43ccf0f929..a866e967a985 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13240,6 +13240,8 @@ with pkgs; grafana = callPackage ../servers/monitoring/grafana { }; + grafana_reporter = callPackage ../servers/monitoring/grafana-reporter { }; + h2o = callPackage ../servers/http/h2o { }; haka = callPackage ../tools/security/haka { };