astro / nix-openwrt-imagebuilder

Build OpenWRT images in Nix derivations
MIT License
129 stars 16 forks source link

Only download required packages #6

Closed tomjnixon closed 2 years ago

tomjnixon commented 2 years ago

First, thanks for making this; I've been thinking about doing something similar for a while.

This change makes it so that only packages which are potentially required are downloaded.

I did this because the original method takes a while to download all the packages and fills up the store. It would be nice to enable other repositories too, and this should make that a bit less painful.

If you don't want this because the whole idea is too complicated, that's fine -- I'll keep my fork separate.

This could maybe do with refactoring a bit, perhaps moving the new functions to a separate 'opkg' module?

astro commented 2 years ago

Great optimization. Well done!