nixpkgs/pkgs/tools/system/netdata/go.d.plugin.nix
Raito Bezarius ffba3f19b5 netdata-go-plugins: add raitobezarius as a maintainer
Because apparently no one is maintaining it and I am de-facto netdata maintainer.
2023-08-10 18:46:53 +02:00

35 lines
944 B
Nix

{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
buildGoModule rec {
pname = "netdata-go-plugins";
version = "0.54.1";
src = fetchFromGitHub {
owner = "netdata";
repo = "go.d.plugin";
rev = "v${version}";
hash = "sha256-3cBgXkvXhSTwQ6qbUbH1nOba5QkjSKtzi2rb+OY06jE=";
};
vendorHash = "sha256-DLRcS8wqnwGRLEeMqWj5SfUvE3fz1hty9jItNfmCdRw=";
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
'';
passthru.tests = { inherit (nixosTests) netdata; };
meta = with lib; {
description = "Netdata orchestrator for data collection modules written in go";
homepage = "https://github.com/netdata/go.d.plugin";
changelog = "https://github.com/netdata/go.d.plugin/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = [ maintainers.raitobezarius ];
};
}