-
-
Notifications
You must be signed in to change notification settings - Fork 22
Add support for apk builds in snapshot release #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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? |
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "apk-tools"; | ||
version = "3.0.0_rc4"; |
There was a problem hiding this comment.
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.
tools = final: prev: { | ||
apk-tools = final.callPackage ./apk-tools.nix { }; | ||
}; |
There was a problem hiding this comment.
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?
There seems to be quite some failures in the CI. |
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 torelease2nix
, reflecting its expanded purpose.For opkg releases we also move
Packages
parsing into therelease2nix
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.