makeOverridablePythonPackage: allow buildPython* to take fixed-point arguments

This commit is contained in:
Yueh-Shun Li
2025-12-18 17:55:00 +08:00
parent 1b0d806788
commit fb9727a198
@@ -23,7 +23,11 @@ let
origArgs:
let
result = f origArgs;
overrideWith = newArgs: origArgs // lib.toFunction newArgs origArgs;
overrideWith =
if lib.isFunction origArgs then
newArgs: lib.extends (_: lib.toFunction newArgs) origArgs
else
newArgs: origArgs // lib.toFunction newArgs origArgs;
in
if lib.isAttrs result then
result