mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
aab788548a
https://github.com/netdata/go.d.plugin/releases/tag/v0.53.2 https://github.com/netdata/go.d.plugin/releases/tag/v0.53.1
35 lines
918 B
Nix
35 lines
918 B
Nix
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "netdata-go-plugins";
|
|
version = "0.53.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netdata";
|
|
repo = "go.d.plugin";
|
|
rev = "v${version}";
|
|
hash = "sha256-8xb9so+RZoH4MlB2htaFqT5Xlk/EnTSIqlFn1WGghe0=";
|
|
};
|
|
|
|
vendorHash = "sha256-YVk5P5bols3tTEWWUp4aQOq2SGX0JUsN7pwMkamg2WY=";
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|