Skip to content

Conversation

@rvl
Copy link

@rvl rvl commented Apr 13, 2025

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.

@astro
Copy link
Owner

astro commented Apr 13, 2025

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


stdenv.mkDerivation (finalAttrs: {
pname = "apk-tools";
version = "3.0.0_rc4";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As soon as we have the proper release, we want to upstream this into nixpkgs.

Comment on lines +89 to +91
tools = final: prev: {
apk-tools = final.callPackage ./apk-tools.nix { };
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we really expose this?

@SuperSandro2000
Copy link
Contributor

There seems to be quite some failures in the CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants