lib: make extender available on self-references
This commit is contained in:
@@ -107,7 +107,7 @@ rec {
|
|||||||
# Same as `makeExtensible` but the name of the extending attribute is
|
# Same as `makeExtensible` but the name of the extending attribute is
|
||||||
# customized.
|
# customized.
|
||||||
makeExtensibleWithCustomName = extenderName: rattrs:
|
makeExtensibleWithCustomName = extenderName: rattrs:
|
||||||
fix' rattrs // {
|
fix' (self: (rattrs self) // {
|
||||||
${extenderName} = f: makeExtensibleWithCustomName extenderName (extends f rattrs);
|
${extenderName} = f: makeExtensibleWithCustomName extenderName (extends f rattrs);
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user