[Nix-dev] import vs override

Nicolas Pierron nicolas.b.pierron at gmail.com
Sat Mar 19 14:55:03 CET 2016


On Fri, Mar 18, 2016 at 11:19 PM, zimbatm <zimbatm at zimbatm.com> wrote:
> Hi, stupid question of the day.
>
> When I see things like recurseIntoAttr in all-packages.nix I am left
> wondering why this is better than repeated `import ./<lang>-packages.nix {
> lang = lang_1_0; }`, where lang_1_0 would vary. Does anybody know ?

recurseIntoAttrs is used to hint that we have an attribute set of
derivations below, thus to let a few function iterate over the full
list of packages.
If we don't have it is probably because we don't want to list the set
of packages which are below.

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/


More information about the nix-dev mailing list