lib/customisation/makeOverridable: inline mirrorFunctionArgs

This commit is contained in:
Eman Resu
2026-10-14 23:06:54 -04:00
parent 9b89fcee8a
commit e16cf3013b

View File

@@ -151,8 +151,12 @@ rec {
makeOverridable =
f:
let
fArgs = functionArgs f;
# Creates a functor with the same arguments as f
mirrorArgs = mirrorFunctionArgs f;
mirrorArgs = g: {
__functor = self: g;
__functionArgs = fArgs;
};
f' =
origArgs: