grafana-dash-n-grab: init at 0.3.1

This commit is contained in:
Matthew Wraith 2023-02-17 18:21:01 -08:00
parent 9d344df50a
commit 884edcc23a
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "grafana-dash-n-grab";
version = "0.3.1";
src = fetchFromGitHub {
rev = "v${version}";
owner = "esnet";
repo = "gdg";
sha256 = "sha256-M4V4ybOizXCLxTTuS17M0y2tRmjQmTIBdXVbumzOoeA=";
};
vendorSha256 = "sha256-pXo80Tean5OkQ0Sv2+/RlRnAtaClwGP7tuDC2irsh+E=";
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
"-X github.com/esnet/gdg/version.GitCommit=${src.rev}"
];
# The test suite tries to communicate with a running version of grafana locally. This fails if
# you don't have grafana running.
doCheck = false;
meta = with lib; {
description = "Grafana Dash-n-Grab (gdg) -- backup and restore Grafana dashboards, datasources, and other entities";
license = licenses.bsd3;
homepage = "https://github.com/esnet/gdg";
maintainers = with maintainers; [ wraithm ] ++ teams.bitnomial.members;
platforms = platforms.unix;
mainProgram = "gdg";
changelog =
"https://github.com/esnet/gdg/releases/tag/v${version}";
};
}

View file

@ -24485,6 +24485,8 @@ with pkgs;
grafana-image-renderer = callPackage ../servers/monitoring/grafana-image-renderer { };
grafana-dash-n-grab = callPackage ../servers/monitoring/grafana-dash-n-grab { };
gerbera = callPackage ../servers/gerbera {};
gobetween = callPackage ../servers/gobetween { };