mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
33 lines
762 B
Nix
33 lines
762 B
Nix
{ lib, buildGoPackage, fetchFromGitHub, tetex, makeWrapper }:
|
|
|
|
with lib;
|
|
|
|
buildGoPackage rec {
|
|
pname = "reporter";
|
|
version = "2.3.1";
|
|
rev = "v${version}";
|
|
|
|
goPackagePath = "github.com/IzakMarais/reporter";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "IzakMarais";
|
|
repo = "reporter";
|
|
sha256 = "sha256-lsraJwx56I2Gn8CePWUlQu1qdMp78P4xwPzLxetYUcw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|