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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
767 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGo119Module }:
buildGo119Module rec {
2020-02-22 07:45:50 +00:00
pname = "netdata-go.d.plugin";
version = "0.50.0";
2020-02-22 07:45:50 +00:00
src = fetchFromGitHub {
owner = "netdata";
repo = "go.d.plugin";
rev = "v${version}";
sha256 = "5kDc6zszVuFTDkNMuHBRwrfDnH+AdD6ULzmywtvL8iA=";
2020-02-22 07:45:50 +00:00
};
vendorSha256 = "sha256-Wv6xqzpQxlZCrVnS+g9t1qiYCkm3NfXfW8XDYA9Txxs=";
2020-04-14 09:20:00 +00:00
doCheck = false;
2021-08-26 06:45:51 +00:00
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 = [ ];
2020-02-22 07:45:50 +00:00
};
2020-06-26 15:49:45 +00:00
}