depot/third_party/nixpkgs/pkgs/tools/system/netdata/go.d.plugin.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

34 lines
918 B
Nix

{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
buildGoModule rec {
pname = "netdata-go-plugins";
version = "0.52.2";
src = fetchFromGitHub {
owner = "netdata";
repo = "go.d.plugin";
rev = "v${version}";
hash = "sha256-/oDUB6EGRq26cRdHwkuTgCRZ+XtNy238TnOYMX1H22s=";
};
vendorHash = "sha256-hxsLCiti/IiTjYPKm/9fWk3CNzDM1+gRgncFXgB/whk=";
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 = [ ];
};
}