query
On this page

generateDhallDirectoryPackage

pkgs.dhallPackages.generateDhallDirectoryPackage

Functor
Docs pulled from | This Revision | 21 minutes ago


Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.

Noogle detected

This is a Functor

Learn about functors

Implementation

The following is the current implementation of this function.

args:
    let
      result = lib.makeOverridable f args;

      copyArgs = g: lib.setFunctionArgs g (lib.functionArgs f);

      overrideWith = update: args // (if lib.isFunction update then update args else update);

      overridePackage = copyArgs (update: makePackageOverridable f (overrideWith update));

    in
    result // { inherit overridePackage; }