3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/monitoring/grafana-reporter/default.nix

33 lines
773 B
Nix
Raw Normal View History

2018-04-06 16:24:30 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub, tetex, makeWrapper }:
with stdenv.lib;
buildGoPackage rec {
pname = "reporter";
2019-04-27 18:19:40 +01:00
version = "2.1.0";
2018-04-06 16:24:30 +01:00
rev = "v${version}";
goPackagePath = "github.com/IzakMarais/reporter";
nativeBuildInputs = [ makeWrapper ];
src = fetchFromGitHub {
inherit rev;
owner = "IzakMarais";
repo = "reporter";
2019-04-27 18:19:40 +01:00
sha256 = "1zindyypf634l4dd2rsvp67ryz9mmzq779x9d01apd04wivd9yf1";
2018-04-06 16:24:30 +01:00
};
postInstall = ''
wrapProgram $out/bin/grafana-reporter \
2018-04-06 16:24:30 +01:00
--prefix PATH : ${makeBinPath [ tetex ]}
'';
meta = {
description = "PDF report generator from a Grafana dashboard";
homepage = "https://github.com/IzakMarais/reporter";
2018-04-06 16:24:30 +01:00
license = licenses.mit;
maintainers = with maintainers; [ disassembler ];
};
}