7b8c41e04c
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/node_exporter/versions
29 lines
811 B
Nix
29 lines
811 B
Nix
{ stdenv, buildGo19Package, fetchFromGitHub }:
|
|
|
|
# Go 1.10 causes segfaults:
|
|
# https://github.com/prometheus/node_exporter/issues/870
|
|
buildGo19Package rec {
|
|
name = "node_exporter-${version}";
|
|
version = "0.17.0";
|
|
rev = "v${version}";
|
|
|
|
goPackagePath = "github.com/prometheus/node_exporter";
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "prometheus";
|
|
repo = "node_exporter";
|
|
sha256 = "08g4dg6zcr95j88apsxp828jfyx4vq271w1mgkf77c46c16d2nh0";
|
|
};
|
|
|
|
# FIXME: tests fail due to read-only nix store
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Prometheus exporter for machine metrics";
|
|
homepage = https://github.com/prometheus/node_exporter;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ benley fpletz ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|