nixpkgs/pkgs/tools/system/netdata/go.d.plugin.nix
Łukasz Niemier ff167d8172
netdata-go.d.plugin: from 0.32.3 to 0.50.0
Netdata package has been updated several times in the meantime, but this
(somewhat crucial) dependency was left forgotten and unloved. So this is
quite huge jump in versions, but it is needed as many of the collectors
were added there (the one I have noticed that is missing is PostgreSQL
collector, but I bet that there is more).

It also adds missing Bash `buildInput` as I noticed that it is needed by
some shell collectors (cgroups I believe).
2023-02-07 12:53:37 +01:00

31 lines
767 B
Nix

{ lib, fetchFromGitHub, buildGo119Module }:
buildGo119Module rec {
pname = "netdata-go.d.plugin";
version = "0.50.0";
src = fetchFromGitHub {
owner = "netdata";
repo = "go.d.plugin";
rev = "v${version}";
sha256 = "5kDc6zszVuFTDkNMuHBRwrfDnH+AdD6ULzmywtvL8iA=";
};
vendorSha256 = "sha256-Wv6xqzpQxlZCrVnS+g9t1qiYCkm3NfXfW8XDYA9Txxs=";
doCheck = false;
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 = [ ];
};
}