nixpkgs/pkgs/tools/system/netdata/go.d.plugin.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
950 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGo121Module, nixosTests }:
buildGo121Module rec {
pname = "netdata-go-plugins";
version = "0.57.2";
2020-02-22 07:45:50 +00:00
src = fetchFromGitHub {
owner = "netdata";
repo = "go.d.plugin";
rev = "v${version}";
hash = "sha256-Qtk1/sQxWAGPHid6tPlwylyHvhxwWTJMT8TwCd/gazk=";
2020-02-22 07:45:50 +00:00
};
vendorHash = "sha256-SFXf99cSA8sncAzZqj2eiiJFhyD4TXQipGAeM2Hivak=";
2020-04-14 10:20:00 +01:00
doCheck = false;
2021-08-26 07:45:51 +01:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2020-02-22 07:45:50 +00:00
postInstall = ''
2020-04-14 10:20:00 +01:00
mkdir -p $out/lib/netdata/conf.d
cp -r config/* $out/lib/netdata/conf.d
2020-02-22 07:45:50 +00:00
'';
passthru.tests = { inherit (nixosTests) netdata; };
2020-02-22 07:45:50 +00:00
meta = with lib; {
description = "Netdata orchestrator for data collection modules written in go";
homepage = "https://github.com/netdata/go.d.plugin";
2023-03-18 04:20:00 +00:00
changelog = "https://github.com/netdata/go.d.plugin/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = [ maintainers.raitobezarius ];
2020-02-22 07:45:50 +00:00
};
2020-06-26 16:49:45 +01:00
}