query
On this page

mpdWithFeatures

pkgs.mpdWithFeatures

Functor
Docs pulled from | This Revision | 11 minutes ago


Nixpkgs manual

  Change the arguments with which a certain function is called.

In some cases, you may find a list of possible attributes to pass in this function's __functionArgs attribute, but it will not be complete for an original function like args@{foo, ...}: ..., which accepts arbitrary attributes.

This function was provided by lib.makeOverridable.

Noogle detected

This is a Functor

Learn about functors

Implementation

The following is the current implementation of this function.

newArgs: makeOverridable f (origArgs // (if isFunction newArgs then newArgs origArgs else newArgs))