nix-openwrt-imagebuilder icon indicating copy to clipboard operation
nix-openwrt-imagebuilder copied to clipboard

Add support for apk builds in snapshot release

Open rvl opened this issue 9 months ago • 2 comments

This changes the generate-all-hashes script to use apk adpdump as mentioned in #47.

The packages list gets converted to nix syntax and cached in the repo tree. IFD is no longer needed to build an image. The price of this is more data stored in the git repo.

generate-hashes is renamed to release2nix, reflecting its expanded purpose.

For opkg releases we also move Packages parsing into the release2nix script.

From the user's perspective, the profiles and build functions should work the same way as before, except that now it's again possible to build snapshot releases. Also builds will be faster.

I haven't tested this a lot, but I have successfully used the results on a glinet_gl-s1300, for 22.03.7 and the current snapshot.

rvl avatar Apr 13 '25 12:04 rvl

Wow, that's immense but really cool. Thank you!

I am going to test this a bit. My main worry is about legacy OpenWrt releases because I still run 4 MB flash devices. Support for the current OpenWrt version is more important, however!

If I merge this soon, will you be available to take care of any regressions?

Cc: @pedorich-n @SuperSandro2000

astro avatar Apr 13 '25 18:04 astro

There seems to be quite some failures in the CI.

SuperSandro2000 avatar Apr 13 '25 21:04 SuperSandro2000