nixpkgs/pkgs/tools/system/netdata/go.d.plugin.nix

30 lines
786 B
Nix
Raw Normal View History

2020-04-14 09:20:00 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
2020-02-22 07:45:50 +00:00
2020-04-14 09:20:00 +00:00
buildGoModule rec {
2020-02-22 07:45:50 +00:00
pname = "netdata-go.d.plugin";
2020-06-26 15:49:45 +00:00
version = "0.19.2";
2020-02-22 07:45:50 +00:00
src = fetchFromGitHub {
owner = "netdata";
repo = "go.d.plugin";
rev = "v${version}";
2020-06-26 15:49:45 +00:00
sha256 = "03a67kvhickzg96jvzxhg1jih48m96rl4mkg0wgmbi7a676dl7lq";
2020-02-22 07:45:50 +00:00
};
2020-06-26 15:49:45 +00:00
vendorSha256 = "0mmnkkzpv8lmxn11idikddmjinxv1y823ny0wxp271agiinyfpn8";
2020-04-14 09:20:00 +00:00
buildFlagsArray = [ "-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
'';
meta = with lib; {
description = "Netdata orchestrator for data collection modules written in go";
homepage = "https://github.com/netdata/go.d.plugin";
2020-02-22 07:45:50 +00:00
license = licenses.gpl3;
maintainers = [ maintainers.lethalman ];
};
2020-06-26 15:49:45 +00:00
}