2018-07-07 21:25:15 +02:00
|
|
|
{ stdenv, buildGo19Package, fetchFromGitHub }:
|
2016-06-05 15:52:16 +02:00
|
|
|
|
2018-08-09 23:52:21 +02:00
|
|
|
# Go 1.10 causes segfaults:
|
|
|
|
# https://github.com/prometheus/node_exporter/issues/870
|
2018-07-07 21:25:15 +02:00
|
|
|
buildGo19Package rec {
|
2016-06-05 15:52:16 +02:00
|
|
|
name = "node_exporter-${version}";
|
2018-12-15 10:06:41 +01:00
|
|
|
version = "0.17.0";
|
2016-12-01 01:34:21 +01:00
|
|
|
rev = "v${version}";
|
2016-06-28 15:32:22 +02:00
|
|
|
|
2016-06-05 15:52:16 +02:00
|
|
|
goPackagePath = "github.com/prometheus/node_exporter";
|
|
|
|
|
2016-06-06 12:26:56 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 15:52:16 +02:00
|
|
|
inherit rev;
|
2016-06-06 12:26:56 +02:00
|
|
|
owner = "prometheus";
|
|
|
|
repo = "node_exporter";
|
2018-12-15 10:06:41 +01:00
|
|
|
sha256 = "08g4dg6zcr95j88apsxp828jfyx4vq271w1mgkf77c46c16d2nh0";
|
2016-06-05 15:52:16 +02:00
|
|
|
};
|
|
|
|
|
2018-06-18 19:21:20 +02:00
|
|
|
# FIXME: tests fail due to read-only nix store
|
2016-06-28 15:32:22 +02:00
|
|
|
doCheck = false;
|
2016-06-05 15:52:16 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Prometheus exporter for machine metrics";
|
|
|
|
homepage = https://github.com/prometheus/node_exporter;
|
|
|
|
license = licenses.asl20;
|
2016-12-01 01:34:21 +01:00
|
|
|
maintainers = with maintainers; [ benley fpletz ];
|
2016-06-05 15:52:16 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|