2024-01-14 00:27:50 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
2023-03-18 04:20:00 +00:00
|
|
|
|
2024-01-14 00:27:50 +00:00
|
|
|
buildGoModule rec {
|
2023-03-01 11:29:07 +00:00
|
|
|
pname = "netdata-go-plugins";
|
2024-02-09 07:20:14 +00:00
|
|
|
version = "0.58.1";
|
2020-02-22 07:45:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netdata";
|
|
|
|
repo = "go.d.plugin";
|
|
|
|
rev = "v${version}";
|
2024-02-09 07:20:14 +00:00
|
|
|
hash = "sha256-zzHm98jec7MXnzVsrLlYIk+ILA3Ei43853dM1LdFz5c=";
|
2020-02-22 07:45:50 +00:00
|
|
|
};
|
|
|
|
|
2024-02-09 07:20:14 +00:00
|
|
|
vendorHash = "sha256-eb+GRFhfWxDkfH4x2VF3ogyT5z4OcIoqHtEVJ1tGsdA=";
|
2020-04-14 09:20:00 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2020-02-22 07:45:50 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-14 09:20:00 +00:00
|
|
|
mkdir -p $out/lib/netdata/conf.d
|
|
|
|
cp -r config/* $out/lib/netdata/conf.d
|
2020-02-22 07:45:50 +00:00
|
|
|
'';
|
|
|
|
|
2023-03-18 04:20:00 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) netdata; };
|
|
|
|
|
2020-02-22 07:45:50 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Netdata orchestrator for data collection modules written in go";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "godplugin";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/netdata/go.d.plugin";
|
2023-03-18 04:20:00 +00:00
|
|
|
changelog = "https://github.com/netdata/go.d.plugin/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3Only;
|
2023-08-10 16:43:34 +00:00
|
|
|
maintainers = [ maintainers.raitobezarius ];
|
2020-02-22 07:45:50 +00:00
|
|
|
};
|
2020-06-26 15:49:45 +00:00
|
|
|
}
|