diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-10 16:36:35 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-01-10 16:36:35 +0100 |
commit | bcf6be337fab66fe91cb72c57919b5e66cf6233c (patch) | |
tree | dbe2929ab7ecbd2d86fdfb9ca16c1df1d51b33ac /overlays | |
parent | e6732f0057e8a1b2099b20cb257bf39440323422 (diff) | |
download | nixos-bcf6be337fab66fe91cb72c57919b5e66cf6233c.tar nixos-bcf6be337fab66fe91cb72c57919b5e66cf6233c.tar.gz nixos-bcf6be337fab66fe91cb72c57919b5e66cf6233c.tar.bz2 nixos-bcf6be337fab66fe91cb72c57919b5e66cf6233c.tar.xz nixos-bcf6be337fab66fe91cb72c57919b5e66cf6233c.zip |
...
Diffstat (limited to 'overlays')
-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 | } | ||