prometheus-node-exporter: move to by-name

This change was primarly made to get rid of the inherit (darwin... hack,
to make vendoring old versions of the exporter easier

Co-authored-by: nicoo <nicoo@mur.at>
This commit is contained in:
Maciej Krüger 2024-07-12 02:51:06 +02:00
parent 4909c78bef
commit 486d8c4a35
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F
2 changed files with 2 additions and 8 deletions

View File

@ -1,7 +1,4 @@
{ lib, stdenv, buildGoModule, fetchFromGitHub, nixosTests
# darwin
, CoreFoundation, IOKit
}:
{ lib, stdenv, buildGoModule, fetchFromGitHub, nixosTests, darwin }:
buildGoModule rec {
pname = "node_exporter";
@ -20,7 +17,7 @@ buildGoModule rec {
# FIXME: tests fail due to read-only nix store
doCheck = false;
buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation IOKit ];
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation IOKit ]);
excludedPackages = [ "docs/node-mixin" ];

View File

@ -26135,9 +26135,6 @@ with pkgs;
prometheus-nextcloud-exporter = callPackage ../servers/monitoring/prometheus/nextcloud-exporter.nix { };
prometheus-nginx-exporter = callPackage ../servers/monitoring/prometheus/nginx-exporter.nix { };
prometheus-nginxlog-exporter = callPackage ../servers/monitoring/prometheus/nginxlog-exporter.nix { };
prometheus-node-exporter = callPackage ../servers/monitoring/prometheus/node-exporter.nix {
inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit;
};
prometheus-nut-exporter = callPackage ../servers/monitoring/prometheus/nut-exporter.nix { };
prometheus-openldap-exporter = callPackage ../servers/monitoring/prometheus/openldap-exporter.nix { } ;
prometheus-pgbouncer-exporter = callPackage ../servers/monitoring/prometheus/pgbouncer-exporter.nix { };