nixpkgs-suyu/pkgs/servers/monitoring/prometheus/node-exporter.nix
2017-09-13 22:08:25 +02:00

31 lines
836 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "node_exporter-${version}";
version = "0.14.0";
rev = "v${version}";
goPackagePath = "github.com/prometheus/node_exporter";
src = fetchFromGitHub {
inherit rev;
owner = "prometheus";
repo = "node_exporter";
sha256 = "0rm43jjqv7crfahl973swi4warqmqnmv740cg800yvzvnlp37kl4";
};
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -delete_rpath $out/lib $bin/bin/node_exporter
'';
# FIXME: megacli test fails
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;
};
}