5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
34 lines
944 B
Nix
34 lines
944 B
Nix
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "netdata-go-plugins";
|
|
version = "0.56.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netdata";
|
|
repo = "go.d.plugin";
|
|
rev = "v${version}";
|
|
hash = "sha256-OA//50j7MWCNyQ85DzSkk0kI8XonBOMpEmsIJ7QLbHY=";
|
|
};
|
|
|
|
vendorHash = "sha256-1ir6paAz4NyJDPivBrHyiTrNwJMJ00Q4/sWBLBnwqPM=";
|
|
|
|
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 ];
|
|
};
|
|
}
|