Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
36 lines
800 B
Nix
36 lines
800 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "collectd-exporter";
|
|
version = "0.7.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus";
|
|
repo = "collectd_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-MxgHJ9+e94ReY/8ISPfGEX9Z9ZHDyNsV0AqlPfsjXvc=";
|
|
};
|
|
|
|
vendorHash = "sha256-kr8mHprIfXc/Yj/w2UKBkqIYZHmWtBLjqYDvKSXlozQ=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) collectd; };
|
|
|
|
meta = with lib; {
|
|
description = "Relay server for exporting metrics from collectd to Prometheus";
|
|
mainProgram = "collectd_exporter";
|
|
homepage = "https://github.com/prometheus/collectd_exporter";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ benley ];
|
|
};
|
|
}
|