31 lines
806 B
Nix
31 lines
806 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "netdata-go.d.plugin";
|
|
version = "0.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netdata";
|
|
repo = "go.d.plugin";
|
|
rev = "v${version}";
|
|
sha256 = "0wd1wg56q955jm5ksq2zqzlms1nlxx7n7vv43l096k1578fv93jv";
|
|
};
|
|
|
|
vendorSha256 = "1k84l97fw4s9jdwbka4p168m7l7wil0c4cpijis8ypj3g1xfrw90";
|
|
|
|
doCheck = false;
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib/netdata/conf.d
|
|
cp -r config/* $out/lib/netdata/conf.d
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Netdata orchestrator for data collection modules written in go";
|
|
homepage = "https://github.com/netdata/go.d.plugin";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.lethalman ];
|
|
};
|
|
}
|