2023-03-24 00:07:29 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "netdata-go-plugins";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.56.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netdata";
|
|
|
|
repo = "go.d.plugin";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-OA//50j7MWCNyQ85DzSkk0kI8XonBOMpEmsIJ7QLbHY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-1ir6paAz4NyJDPivBrHyiTrNwJMJ00Q4/sWBLBnwqPM=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/lib/netdata/conf.d
|
|
|
|
cp -r config/* $out/lib/netdata/conf.d
|
|
|
|
'';
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) netdata; };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Netdata orchestrator for data collection modules written in go";
|
|
|
|
homepage = "https://github.com/netdata/go.d.plugin";
|
2023-03-24 00:07:29 +00:00
|
|
|
changelog = "https://github.com/netdata/go.d.plugin/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3Only;
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = [ maintainers.raitobezarius ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-07-18 16:06:22 +00:00
|
|
|
}
|