Add overrideDerivation to makeOverridable. Closes #4017
This commit is contained in:
parent
c257f52be2
commit
492dd14e78
1 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,8 @@ rec {
|
|||
makeOverridable f (origArgs // (if builtins.isFunction newArgs then newArgs origArgs else newArgs));
|
||||
deepOverride = newArgs:
|
||||
makeOverridable f (lib.overrideExisting (lib.mapAttrs (deepOverrider newArgs) origArgs) newArgs);
|
||||
overrideDerivation = fdrv:
|
||||
makeOverridable (args: overrideDerivation (f args) fdrv) origArgs;
|
||||
})
|
||||
else ff;
|
||||
|
||||
|
|
Loading…
Reference in a new issue