query
On this page

recurseIntoAttrs

lib.recurseIntoAttrs

Docs pulled from | This Revision | 9 minutes ago


Make various Nix tools consider the contents of the resulting attribute set when looking for what to build, find, etc.

This function only affects a single attribute set; it does not apply itself recursively for nested attribute sets.

Inputs

attrs

An attribute set to scan for derivations.

Type

recurseIntoAttrs :: AttrSet -> AttrSet

Examples

lib.attrsets.recurseIntoAttrs usage example

{ pkgs ? import <nixpkgs> {} }:
{
  myTools = pkgs.lib.recurseIntoAttrs {
    inherit (pkgs) hello figlet;
  };
}
(lib.attrsets.recurseIntoAttrs)

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

recurseIntoAttrs =
    attrs:
    attrs // { recurseForDerivations = true; };