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