[Nix-dev] variable scope / recursion

Kirill Elagin kirelagin at gmail.com
Fri Jul 6 14:28:29 CEST 2012


2012/7/6 Mathijs Kwik <mathijs at bluescreen303.nl>

>  Yeah I saw those comments too, but I can't see how that would work.
> Because the "original" (pkgsOrig) set is built by passing pkgs (the
> final set) to pkgsFun.
> In other words, the set references itself, which is perfectly normal
> in a lazy setting.
> The notion of "original" makes sense for the attributes that get
> overwritten, but for the rest, I would expect a "shine through".
>

As Shea already pointed out there is ``__overrides`` dark magic involved.
Basically, your overrides are never added to pkgs directly, I mean, there
is no something like "pkgs = overrides // origPkgs".

--
Кирилл Елагин
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120706/b997609e/attachment-0001.html 


More information about the nix-dev mailing list