Merge pull request #198306 from cole-h/fixup-darwin-prometheus-node-exporter
This commit is contained in:
commit
6618142bb0
2 changed files with 0 additions and 22 deletions
|
@ -21,11 +21,6 @@ buildGoModule rec {
|
|||
doCheck = false;
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ CoreFoundation IOKit ];
|
||||
# upstream currently doesn't work with the version of the macOS SDK
|
||||
# we're building against in nix-darwin without a patch.
|
||||
# this patch has been submitted upstream at https://github.com/prometheus/node_exporter/pull/2327
|
||||
# and only needs to be carried until it lands in a new release.
|
||||
patches = lib.optionals stdenv.isDarwin [ ./node-exporter/node-exporter-darwin.patch ];
|
||||
|
||||
excludedPackages = [ "docs/node-mixin" ];
|
||||
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
diff --git a/collector/powersupplyclass_darwin.go b/collector/powersupplyclass_darwin.go
|
||||
index a070f64..01d7f18 100644
|
||||
--- a/collector/powersupplyclass_darwin.go
|
||||
+++ b/collector/powersupplyclass_darwin.go
|
||||
@@ -18,9 +18,11 @@ package collector
|
||||
|
||||
/*
|
||||
#cgo LDFLAGS: -framework IOKit -framework CoreFoundation
|
||||
+#include <CoreFoundation/CFNumber.h>
|
||||
+#include <CoreFoundation/CFRunLoop.h>
|
||||
+#include <CoreFoundation/CFString.h>
|
||||
#include <IOKit/ps/IOPowerSources.h>
|
||||
#include <IOKit/ps/IOPSKeys.h>
|
||||
-#include <CoreFoundation/CFArray.h>
|
||||
|
||||
// values collected from IOKit Power Source APIs
|
||||
// Functions documentation available at
|
Loading…
Reference in a new issue