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