summary refs log tree commit diff
path: root/lib/fixed-points.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fixed-points.nix')
-rw-r--r--lib/fixed-points.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fixed-points.nix b/lib/fixed-points.nix
index bf1567a22a6..926428293c1 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);
-   };
+    });
 }