From 751dc5ea937cfd5942aefa16977c96bc65b8d9a9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 15 Mar 2022 11:11:31 +0100 Subject: prometheus-systemd-exporter: ... --- overlays/prometheus-node-exporter.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 overlays/prometheus-node-exporter.nix (limited to 'overlays/prometheus-node-exporter.nix') diff --git a/overlays/prometheus-node-exporter.nix b/overlays/prometheus-node-exporter.nix new file mode 100644 index 00000000..de5b15f2 --- /dev/null +++ b/overlays/prometheus-node-exporter.nix @@ -0,0 +1,15 @@ +{ 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