From 06f0e49dc60bccbcce9fed65c9f6fda53ba722af Mon Sep 17 00:00:00 2001 From: Chris Hodapp Date: Sun, 15 Jan 2023 10:56:07 -0800 Subject: [PATCH] lib: make extender available on self-references --- lib/fixed-points.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fixed-points.nix b/lib/fixed-points.nix index bf1567a22a66..926428293c1c 100644 --- a/lib/fixed-points.nix +++ b/lib/fixed-points.nix @@ -107,7 +107,7 @@ rec { # Same as `makeExtensible` but the name of the extending attribute is # customized. makeExtensibleWithCustomName = extenderName: rattrs: - fix' rattrs // { + fix' (self: (rattrs self) // { ${extenderName} = f: makeExtensibleWithCustomName extenderName (extends f rattrs); - }; + }); }