diff options
Diffstat (limited to 'overlays/prometheus-node-exporter')
-rw-r--r-- | overlays/prometheus-node-exporter/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ | |||
1 | final: prev: { | ||
2 | prometheus-systemd-exporter = prev.prometheus-systemd-exporter.overrideAttrs (oldAttrs: { | ||
3 | patches = oldAttrs.patches or [] ++ [ | ||
4 | (prev.runCommand "cpu-unified.diff" { | ||
5 | src = prev.fetchurl { | ||
6 | url = "https://github.com/pelov/systemd_exporter/commit/2880a8dd1ca4909e51a569093284fad47343016a.diff"; | ||
7 | hash = "sha256-i6sptiCdXmOqK5kfjLbIupctM34RqDahAE/39+35dRI="; | ||
8 | }; | ||
9 | buildInputs = with prev; [ patchutils ]; | ||
10 | } '' | ||
11 | filterdiff -x '**/CHANGELOG.md' $src > $out | ||
12 | '') | ||
13 | ]; | ||
14 | }); | ||
15 | } | ||