18 lines
433 B
Nix
18 lines
433 B
Nix
{ prometheus }:
|
|
prometheus.overrideAttrs (
|
|
old:
|
|
let
|
|
assets = old.passthru.assets.overrideAttrs (assetsOld: {
|
|
patches = (assetsOld.patches or [ ]) ++ [ ./complete-test-parsing.patch ];
|
|
});
|
|
in
|
|
{
|
|
postPatch = builtins.replaceStrings [ "${old.passthru.assets}" ] [ "${assets}" ] (
|
|
builtins.unsafeDiscardStringContext old.postPatch
|
|
);
|
|
passthru = old.passthru // {
|
|
inherit assets;
|
|
};
|
|
}
|
|
)
|