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";
|
2021-05-04 19:19:00 +02:00
|
|
|
version = "0.28.1";
|
2020-02-22 08:45:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netdata";
|
|
|
|
repo = "go.d.plugin";
|
|
|
|
rev = "v${version}";
|
2021-05-04 19:19:00 +02:00
|
|
|
sha256 = "0i77nvqi3dcby0gr3b06bai170q2ibp5390qfjijrk1yqz6x6sd5";
|
2020-02-22 08:45:50 +01:00
|
|
|
};
|
|
|
|
|
2021-05-04 19:19:00 +02:00
|
|
|
vendorSha256 = "1q8z4smaxzqd5iwvbnkkr33c3b94rjwa3xjirwlr595g0wn93wc7";
|
2020-04-14 11:20:00 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
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;
|
2021-05-07 15:35:21 +02:00
|
|
|
maintainers = [ ];
|
2020-02-22 08:45:50 +01:00
|
|
|
};
|
2020-06-26 17:49:45 +02:00
|
|
|
}
|