28 lines
728 B
Nix
28 lines
728 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "collectd-exporter";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus";
|
|
repo = "collectd_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "0vb6vnd2j87iqxdl86j30dk65vrv4scprv200xb83203aprngqgh";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) collectd; };
|
|
|
|
meta = with lib; {
|
|
description = "Relay server for exporting metrics from collectd to Prometheus";
|
|
homepage = "https://github.com/prometheus/collectd_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ benley ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|