depot/pkgs/servers/monitoring/grafana-dash-n-grab/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

36 lines
1 KiB
Nix

{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "grafana-dash-n-grab";
version = "0.6.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "esnet";
repo = "gdg";
sha256 = "sha256-47zKZnq7ADIAti4fjGj6ctoM5Qo6UzAX1aLf87TknkQ=";
};
vendorHash = "sha256-XJSi+p++1QFfGk57trfIgyv0nWUm38H0n/qbJgV8lEM=";
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; teams.bitnomial.members;
mainProgram = "gdg";
changelog =
"https://github.com/esnet/gdg/releases/tag/v${version}";
};
}