mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "grafana-dash-n-grab";
|
|
version = "0.5.2";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "esnet";
|
|
repo = "gdg";
|
|
sha256 = "sha256-EG1hLyoy75nvA1ZmSHSPVEzMwhq6d0PxmVUpQysjsRg=";
|
|
};
|
|
|
|
vendorHash = "sha256-w0w6ac8sNxsVBEYps6ZhM7F4PFcIWKah0cnk/NBtA8M=";
|
|
|
|
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}";
|
|
};
|
|
}
|