Commit fb9727a1 authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

makeOverridablePythonPackage: allow buildPython* to take fixed-point arguments

parent 1b0d8067
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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