blob: 1e46b2ae66c3b639654d28e7707a1c830f7157a6 [file] [log] [blame]
final: prev:
let
lib = prev.lib;
utils = import ../utils lib;
in
lib.pipe ../patches [
utils.dirsInWithName
(builtins.map ({ name
, path
,
}: {
inherit name;
value = prev.${name}.overrideAttrs (prevAttrs: {
patches =
(prevAttrs.patches or [ ])
++ lib.traceValFn builtins.toJSON (lib.pipe path [
builtins.readDir
(lib.filterAttrs (_: type: type == "regular"))
builtins.attrNames
(builtins.map (name: "${path}/${name}"))
]);
});
}))
builtins.listToAttrs
]