[Nix-dev] modularize all-packages?

Daniel Peebles pumpkingod at gmail.com
Thu May 7 15:02:54 CEST 2015


No need to read all the files, right? You import them lazily based on what readDir returns.



> On May 7, 2015, at 08:35, Wout Mertens <wout.mertens at gmail.com> wrote:
> 
> the problem with readDir is slowness due to reading thousands of files... nix codegen would fix that :)
> 
> 
>> On Thu, May 7, 2015 at 2:29 PM Daniel Peebles <pumpkingod at gmail.com> wrote:
>> I thought that at some point there was an effort to autogenerate (dynamically, so not nix codegen) the list from readDir. If not, it seems like the majority of packages could work that way, along with room to override where necessary.
>> 
>> 
>> 
>> > On May 7, 2015, at 08:10, Wout Mertens <wout.mertens at gmail.com> wrote:
>> >
>> > all-packages.nix is gigantic, and because it's so large, github search doesn't index it.
>> >
>> > Would it be a good idea to move the attribute definitions into files per package section?
>> >
>> > So everything would still be in the pkgs attrset, only the definitions would be split across multiple files.
>> > _______________________________________________
>> > nix-dev mailing list
>> > nix-dev at lists.science.uu.nl
>> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150507/12c4b48e/attachment-0001.html 


More information about the nix-dev mailing list