b426c85ce2
This requires some small changes in the stdenv, then working around the weird choice LLVM made to hardcode @rpath in its install name, and then lets us remove a ton of annoying workaround hacks in many of our Go packages. With any luck this will mean less hackery going forward.
27 lines
703 B
Nix
27 lines
703 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";
|
|
};
|
|
|
|
# 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;
|
|
};
|
|
}
|