mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
30 lines
783 B
Nix
30 lines
783 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "netdata-go.d.plugin";
|
|
version = "0.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netdata";
|
|
repo = "go.d.plugin";
|
|
rev = "v${version}";
|
|
sha256 = "15h4075lwqh58ssdgyq34jj8r4dga0sz7h18dzy4nir75p8a0s7b";
|
|
};
|
|
|
|
modSha256 = "1386qhk1yr47h7qv15k0abc8mfif96pqapw0v4wrf3pl1z9mzl2n";
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib/netdata/conf.d
|
|
cp -r config/* $out/lib/netdata/conf.d
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Netdata orchestrator for data collection modules written in go";
|
|
homepage = "https://github.com/netdata/go.d.plugin";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.lethalman ];
|
|
};
|
|
}
|