1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 18:03:22 +00:00
nixpkgs/pkgs/tools/system/netdata/go.d.plugin.nix

32 lines
806 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-07-16 15:39:08 +01:00
version = "0.20.0";
2020-02-22 07:45:50 +00:00
src = fetchFromGitHub {
owner = "netdata";
repo = "go.d.plugin";
rev = "v${version}";
2020-07-16 15:39:08 +01:00
sha256 = "0wd1wg56q955jm5ksq2zqzlms1nlxx7n7vv43l096k1578fv93jv";
2020-02-22 07:45:50 +00:00
};
2020-07-16 15:39:08 +01:00
vendorSha256 = "1k84l97fw4s9jdwbka4p168m7l7wil0c4cpijis8ypj3g1xfrw90";
2020-04-14 10:20:00 +01:00
doCheck = false;
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 ];
};
2020-06-26 16:49:45 +01:00
}