3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/netdata/go.d.plugin.nix

29 lines
785 B
Nix
Raw Normal View History

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";
2020-04-14 10:20:00 +01:00
version = "0.18.0";
2020-02-22 07:45:50 +00:00
src = fetchFromGitHub {
owner = "netdata";
repo = "go.d.plugin";
rev = "v${version}";
2020-04-14 10:20:00 +01:00
sha256 = "15h4075lwqh58ssdgyq34jj8r4dga0sz7h18dzy4nir75p8a0s7b";
2020-02-22 07:45:50 +00:00
};
vendorSha256 = "1pw9pb3rdjzf2dx1p1jiqxs7qhlpjki7fy74nyxza5wzrv4317sj";
2020-04-14 10:20:00 +01:00
buildFlagsArray = [ "-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";
homepage = "https://github.com/netdata/go.d.plugin";
2020-02-22 07:45:50 +00:00
license = licenses.gpl3;
maintainers = [ maintainers.lethalman ];
};
}