mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
grafana-reporter: init at 2.0.1
This commit is contained in:
parent
c67ccd34c0
commit
5573795901
32
pkgs/servers/monitoring/grafana-reporter/default.nix
Normal file
32
pkgs/servers/monitoring/grafana-reporter/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, buildGoPackage, fetchFromGitHub, tetex, makeWrapper }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
buildGoPackage rec {
|
||||
name = "reporter-${version}";
|
||||
version = "2.0.1";
|
||||
rev = "v${version}";
|
||||
|
||||
goPackagePath = "github.com/IzakMarais/reporter";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit rev;
|
||||
owner = "IzakMarais";
|
||||
repo = "reporter";
|
||||
sha256 = "0yi7nx8ig5xgkwizddl0gdicnmcdp4qgg1fdxyq04l2y3qs176sg";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -13240,6 +13240,8 @@ with pkgs;
|
|||
|
||||
grafana = callPackage ../servers/monitoring/grafana { };
|
||||
|
||||
grafana_reporter = callPackage ../servers/monitoring/grafana-reporter { };
|
||||
|
||||
h2o = callPackage ../servers/http/h2o { };
|
||||
|
||||
haka = callPackage ../tools/security/haka { };
|
||||
|
|
Loading…
Reference in a new issue