mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +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.
28 lines
781 B
Nix
28 lines
781 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "collectd-exporter";
|
|
version = "0.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus";
|
|
repo = "collectd_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-8oibunEHPtNdbhVgF3CL6D/xE7bR8hee6+D2IJMzaqY=";
|
|
};
|
|
|
|
vendorHash = "sha256-fQO2fiotqv18xewXVyh6sA4zx5ZNUR6mCebYenryrKI=";
|
|
|
|
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 ];
|
|
};
|
|
}
|