diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-15 11:11:31 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-15 11:11:31 +0100 |
commit | 751dc5ea937cfd5942aefa16977c96bc65b8d9a9 (patch) | |
tree | 93af97c14f29443ccab49228033cb25b37d29c3f | |
parent | 3d3f8c4721fd0c978243d365d7ac8eaea1124b17 (diff) | |
download | nixos-751dc5ea937cfd5942aefa16977c96bc65b8d9a9.tar nixos-751dc5ea937cfd5942aefa16977c96bc65b8d9a9.tar.gz nixos-751dc5ea937cfd5942aefa16977c96bc65b8d9a9.tar.bz2 nixos-751dc5ea937cfd5942aefa16977c96bc65b8d9a9.tar.xz nixos-751dc5ea937cfd5942aefa16977c96bc65b8d9a9.zip |
prometheus-systemd-exporter: ...
-rw-r--r-- | overlays/prometheus-node-exporter.nix | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ | |||
1 | { 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 | } | ||