blob: 1004947d5b122f8438e633d02255218f830416bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ stdenv, buildGoPackage, fetchFromGitHub, tetex, makeWrapper }:
with stdenv.lib;
buildGoPackage rec {
name = "reporter-${version}";
version = "2.1.0";
rev = "v${version}";
goPackagePath = "github.com/IzakMarais/reporter";
nativeBuildInputs = [ makeWrapper ];
src = fetchFromGitHub {
inherit rev;
owner = "IzakMarais";
repo = "reporter";
sha256 = "1zindyypf634l4dd2rsvp67ryz9mmzq779x9d01apd04wivd9yf1";
};
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 ];
};
}
|