From bcf6be337fab66fe91cb72c57919b5e66cf6233c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 10 Jan 2022 16:36:35 +0100 Subject: ... --- overlays/prometheus-node-exporter/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 overlays/prometheus-node-exporter/default.nix (limited to 'overlays') diff --git a/overlays/prometheus-node-exporter/default.nix b/overlays/prometheus-node-exporter/default.nix new file mode 100644 index 00000000..1133af05 --- /dev/null +++ b/overlays/prometheus-node-exporter/default.nix @@ -0,0 +1,15 @@ +final: prev: { + prometheus-systemd-exporter = prev.prometheus-systemd-exporter.overrideAttrs (oldAttrs: { + patches = oldAttrs.patches or [] ++ [ + (prev.runCommand "cpu-unified.diff" { + src = prev.fetchurl { + url = "https://github.com/pelov/systemd_exporter/commit/2880a8dd1ca4909e51a569093284fad47343016a.diff"; + hash = "sha256-i6sptiCdXmOqK5kfjLbIupctM34RqDahAE/39+35dRI="; + }; + buildInputs = with prev; [ patchutils ]; + } '' + filterdiff -x '**/CHANGELOG.md' $src > $out + '') + ]; + }); +} -- cgit v1.2.3