1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00

grafana-reporter: init at 2.0.1

This commit is contained in:
Samuel Leathers 2018-04-06 11:24:30 -04:00
parent c67ccd34c0
commit 5573795901
No known key found for this signature in database
GPG key ID: 9BCE91C969768E0F
2 changed files with 34 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -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 { };