mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
36 lines
975 B
Nix
36 lines
975 B
Nix
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "netdata-go-plugins";
|
|
version = "0.58.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netdata";
|
|
repo = "go.d.plugin";
|
|
rev = "v${version}";
|
|
hash = "sha256-zzHm98jec7MXnzVsrLlYIk+ILA3Ei43853dM1LdFz5c=";
|
|
};
|
|
|
|
vendorHash = "sha256-eb+GRFhfWxDkfH4x2VF3ogyT5z4OcIoqHtEVJ1tGsdA=";
|
|
|
|
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";
|
|
mainProgram = "godplugin";
|
|
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 ];
|
|
};
|
|
}
|