prometheus-node-exporter: set version information

This commit is contained in:
Andrew Childs 2019-06-25 16:17:46 +09:00
parent e3afc85cba
commit 42c689d70f

View file

@ -17,6 +17,12 @@ buildGoPackage rec {
# FIXME: tests fail due to read-only nix store
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; {
description = "Prometheus exporter for machine metrics";
homepage = https://github.com/prometheus/node_exporter;