Add overrideDerivation to makeOverridable. Closes #4017

This commit is contained in:
Luca Bruno 2014-09-11 11:50:12 +02:00 committed by Bjørn Forsman
parent c257f52be2
commit 492dd14e78

View File

@ -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;