1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00

prometheus-node-exporter: 1.0.1 -> 1.1.2

This commit is contained in:
Robin Gloster 2021-05-11 00:02:02 -05:00
parent 7b9e1e61c0
commit 117e2d44fc
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -1,23 +1,27 @@
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGoPackage rec {
buildGoModule rec {
pname = "node_exporter";
version = "1.0.1";
version = "1.1.2";
rev = "v${version}";
goPackagePath = "github.com/prometheus/node_exporter";
src = fetchFromGitHub {
inherit rev;
owner = "prometheus";
repo = "node_exporter";
sha256 = "1r0xx81r9v019fl0iv078yl21ndhb356y7s7zx171zi02k7a4p2l";
sha256 = "1kz52zhsm0xx63vczzplj15hli4i22qfxl08grb7m50bqk651j1n";
};
vendorSha256 = "05lr2ln87902bwamw4l3rrk2j9sdgv1pcvxyvzbga64rymi9dmjb";
# FIXME: tests fail due to read-only nix store
doCheck = false;
buildFlagsArray = ''
excludedPackages = [ "docs/node-mixin" ];
buildFlagsArray = let
goPackagePath = "github.com/prometheus/node_exporter";
in ''
-ldflags=
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Version=${version}
-X ${goPackagePath}/vendor/github.com/prometheus/common/version.Revision=${rev}