summaryrefslogtreecommitdiff
path: root/overlays/prometheus-node-exporter.nix
blob: de5b15f2ff21e7ece9a2cc17788f57e31cf325c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
      '')
    ];
  });
}