mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
33 lines
763 B
Nix
33 lines
763 B
Nix
{ lib, buildGoPackage, fetchFromGitHub, tetex, makeWrapper }:
|
|
|
|
with lib;
|
|
|
|
buildGoPackage rec {
|
|
pname = "reporter";
|
|
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 $out/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 ];
|
|
};
|
|
}
|