forked from mirrors/nixpkgs
Python: support multiple overrides
Fixes https://github.com/NixOS/nixpkgs/issues/32263
This commit is contained in:
parent
cb6065f0c9
commit
78291a920f
|
@ -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