From e16cf3013bcb699cf360b2f46875326ebfdd9fe8 Mon Sep 17 00:00:00 2001 From: Eman Resu Date: Wed, 14 Oct 2026 23:06:54 -0400 Subject: [PATCH] lib/customisation/makeOverridable: inline mirrorFunctionArgs --- lib/customisation.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/customisation.nix b/lib/customisation.nix index fb4d4da7623f..3b7f68580053 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -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: