2018-04-06 16:24:30 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, tetex, makeWrapper }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "reporter-${version}";
|
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 $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 ];
|
|
|
|
};
|
|
|
|
}
|