Skip to content

Commit

Permalink
pkgs/prometheus-node-exporter: upgrade to 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ohdearaugustin committed Jul 4, 2024
1 parent 077cb1d commit f7ff342
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pkgs/prometheus-node-exporter/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{ lib, buildGoModule, fetchFromGitHub, nixosTests
{ lib, stdenv, buildGoModule, fetchFromGitHub, nixosTests
# darwin
, CoreFoundation, IOKit
}:

buildGoModule rec {
pname = "node_exporter";
version = "1.6.1";
version = "1.8.1";
rev = "v${version}";

src = fetchFromGitHub {
inherit rev;
owner = "prometheus";
repo = "node_exporter";
sha256 = "sha256-BCZLMSJP/63N+pZsK8er87Zem7IFGdkyruDs6UVDZSM=";
hash = "sha256-dg4JSJx5xXEOLLb5xEgrNeDmh/En9G6qKA9G+3v9PH0=";
};

vendorHash = "sha256-hn2cMKhLl5qsm4sZErs6PXTs8yajowxw9a9vtHe5cAk=";
vendorHash = "sha256-sly8AJk+jNZG8ijTBF1Pd5AOOUJJxIG8jHwBUdlt8fM=";

# FIXME: tests fail due to read-only nix store
doCheck = false;

buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation IOKit ];

excludedPackages = [ "docs/node-mixin" ];

ldflags = [
Expand All @@ -34,9 +38,9 @@ buildGoModule rec {

meta = with lib; {
description = "Prometheus exporter for machine metrics";
mainProgram = "node_exporter";
homepage = "https://github.com/prometheus/node_exporter";
changelog = "https://github.com/prometheus/node_exporter/blob/v${version}/CHANGELOG.md";
mainProgram = "node_exporter";
license = licenses.asl20;
maintainers = with maintainers; [ benley fpletz globin Frostman ];
};
Expand Down

0 comments on commit f7ff342

Please sign in to comment.