prometheus-node-exporter: set version information
This commit is contained in:
parent
e3afc85cba
commit
42c689d70f
@ -17,6 +17,12 @@ buildGoPackage rec {
|
|||||||
# FIXME: tests fail due to read-only nix store
|
# FIXME: tests fail due to read-only nix store
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
buildFlagsArray = ''
|
||||||
|
-ldflags=
|
||||||
|
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Version=${version}
|
||||||
|
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Revision=${rev}
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Prometheus exporter for machine metrics";
|
description = "Prometheus exporter for machine metrics";
|
||||||
homepage = https://github.com/prometheus/node_exporter;
|
homepage = https://github.com/prometheus/node_exporter;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user