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