Merge pull request #32318 from FRidh/python-multiple-overrides
Python: support multiple overrides
This commit is contained in:
commit
ce269c971d
1 changed files with 2 additions and 2 deletions
|
@ -43,10 +43,10 @@ let
|
|||
overrideWith = newArgs: origArgs // (if builtins.isFunction newArgs then newArgs origArgs else newArgs);
|
||||
in
|
||||
if builtins.isAttrs ff then (ff // {
|
||||
overridePythonAttrs = newArgs: makeOverridable f (overrideWith newArgs);
|
||||
overridePythonAttrs = newArgs: makeOverridablePythonPackage f (overrideWith newArgs);
|
||||
})
|
||||
else if builtins.isFunction ff then {
|
||||
overridePythonAttrs = newArgs: makeOverridable f (overrideWith newArgs);
|
||||
overridePythonAttrs = newArgs: makeOverridablePythonPackage f (overrideWith newArgs);
|
||||
__functor = self: ff;
|
||||
}
|
||||
else ff;
|
||||
|
|
Loading…
Reference in a new issue