recurseIntoAttrs
lib.recurseIntoAttrs
Docs pulled from | This Revision | about 9 hours 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;
};
}