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.

36 lines
975 B
Nix
Raw Normal View History

2024-01-14 00:27:50 +00:00
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
2024-01-14 00:27:50 +00:00
buildGoModule rec {
pname = "netdata-go-plugins";
2024-02-09 07:20:14 +00:00
version = "0.58.1";
2020-02-22 07:45:50 +00:00
src = fetchFromGitHub {
owner = "netdata";
repo = "go.d.plugin";
rev = "v${version}";
2024-02-09 07:20:14 +00:00
hash = "sha256-zzHm98jec7MXnzVsrLlYIk+ILA3Ei43853dM1LdFz5c=";
2020-02-22 07:45:50 +00:00
};
2024-02-09 07:20:14 +00:00
vendorHash = "sha256-eb+GRFhfWxDkfH4x2VF3ogyT5z4OcIoqHtEVJ1tGsdA=";
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
'';
passthru.tests = { inherit (nixosTests) netdata; };
2020-02-22 07:45:50 +00:00
meta = with lib; {
description = "Netdata orchestrator for data collection modules written in go";
mainProgram = "godplugin";
homepage = "https://github.com/netdata/go.d.plugin";
2023-03-18 04:20:00 +00:00
changelog = "https://github.com/netdata/go.d.plugin/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = [ maintainers.raitobezarius ];
2020-02-22 07:45:50 +00:00
};
2020-06-26 15:49:45 +00:00
}