From 6d6e19a04921afd504e844a3ec7a24b1e296f4fb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 29 Dec 2022 21:07:58 +0100 Subject: ... --- overlays/prometheus-systemd-exporter.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 overlays/prometheus-systemd-exporter.nix (limited to 'overlays') diff --git a/overlays/prometheus-systemd-exporter.nix b/overlays/prometheus-systemd-exporter.nix new file mode 100644 index 00000000..3a3ddc07 --- /dev/null +++ b/overlays/prometheus-systemd-exporter.nix @@ -0,0 +1,11 @@ +{ final, prev, ... }: { + prometheus-systemd-exporter = prev.prometheus-systemd-exporter.overrideAttrs (oldAttrs: { + patches = (oldAttrs.patches or []) ++ [ + (final.fetchpatch { + name = "cpu_stat.patch"; + url = "https://github.com/prometheus-community/systemd_exporter/pull/74.patch"; + hash = "sha256-ClrV9ZOlRruYXaeQwhWc9h88LP3Rm33Jf/dvxbqRS2I="; + }) + ]; + }); +} -- cgit v1.2.3