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 '') ]; }); }