2020-04-14 11:20:00 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-02-22 08:45:50 +01:00
|
|
|
|
2020-04-14 11:20:00 +02:00
|
|
|
buildGoModule rec {
|
2020-02-22 08:45:50 +01:00
|
|
|
pname = "netdata-go.d.plugin";
|
2020-12-21 04:18:19 +01:00
|
|
|
version = "0.26.2";
|
2020-02-22 08:45:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netdata";
|
|
|
|
repo = "go.d.plugin";
|
|
|
|
rev = "v${version}";
|
2020-12-21 04:18:19 +01:00
|
|
|
sha256 = "1jy5pc1ihyrg6sqyw0d48bsqa7kr7kqz10k3845g958vgfmfig59";
|
2020-02-22 08:45:50 +01:00
|
|
|
};
|
|
|
|
|
2020-11-19 09:24:14 +01:00
|
|
|
vendorSha256 = "16b6i9cpk8j7292qgjvida70rg7nixi6g94wayzikx01vmdbis5r";
|
2020-04-14 11:20:00 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-14 11:20:00 +02:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
2020-02-22 08:45:50 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-14 11:20:00 +02:00
|
|
|
mkdir -p $out/lib/netdata/conf.d
|
|
|
|
cp -r config/* $out/lib/netdata/conf.d
|
2020-02-22 08:45:50 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Netdata orchestrator for data collection modules written in go";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/netdata/go.d.plugin";
|
2020-02-22 08:45:50 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.lethalman ];
|
|
|
|
};
|
2020-06-26 17:49:45 +02:00
|
|
|
}
|