prometheus-node-exporter: 1.0.1 -> 1.1.2
This commit is contained in:
parent
7b9e1e61c0
commit
117e2d44fc
@ -1,23 +1,27 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "node_exporter";
|
pname = "node_exporter";
|
||||||
version = "1.0.1";
|
version = "1.1.2";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
|
||||||
goPackagePath = "github.com/prometheus/node_exporter";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
inherit rev;
|
inherit rev;
|
||||||
owner = "prometheus";
|
owner = "prometheus";
|
||||||
repo = "node_exporter";
|
repo = "node_exporter";
|
||||||
sha256 = "1r0xx81r9v019fl0iv078yl21ndhb356y7s7zx171zi02k7a4p2l";
|
sha256 = "1kz52zhsm0xx63vczzplj15hli4i22qfxl08grb7m50bqk651j1n";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "05lr2ln87902bwamw4l3rrk2j9sdgv1pcvxyvzbga64rymi9dmjb";
|
||||||
|
|
||||||
# FIXME: tests fail due to read-only nix store
|
# FIXME: tests fail due to read-only nix store
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
buildFlagsArray = ''
|
excludedPackages = [ "docs/node-mixin" ];
|
||||||
|
|
||||||
|
buildFlagsArray = let
|
||||||
|
goPackagePath = "github.com/prometheus/node_exporter";
|
||||||
|
in ''
|
||||||
-ldflags=
|
-ldflags=
|
||||||
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Version=${version}
|
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Version=${version}
|
||||||
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Revision=${rev}
|
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Revision=${rev}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user