Re-added overrideAttrs in makeOverridable

This commit is contained in:
Will Fancher 2017-07-12 18:38:22 -04:00
parent e11dbc3710
commit 5a5f8613e0

View File

@ -65,6 +65,11 @@ rec {
overrideDerivation = newArgs: overridePackage (self: super: {
val = lib.overrideDerivation super.val newArgs;
});
${if val ? overrideAttrs then "overrideAttrs" else null} = fdrv:
overridePackage (self: super: {
val = super.val.overrideAttrs fdrv;
});
})) // (lib.optionalAttrs (builtins.isFunction val) {
__functor = _: val;
extend = throw "extend not yet supported for functors";