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