nixpkgs-suyu/pkgs/servers/monitoring/grafana-reporter/default.nix

33 lines
773 B
Nix
Raw Normal View History

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