Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi just creating a pull request. Have refactored the code to install dependencies using
nix
package manager.These are the new files:
install.sh
- installs the dependencies ( and thenix
package manager if not already on the system).uninstall.sh
- uninstalls nixpackages.txt
- contains list of packages any built image will containtarget.txt
- contains the target to build (x86 by default)installer_files
- directory containing installation files, including:x86-imagebuilder.sh
- a slightly modified version of your scriptflake.nix
- this is the nix expression which is used to install the required dependencies (line 9), and copy the x86-imagebuilder.sh to the nix-store (i.e./nix/store/...
) where theinstall.sh
symlinks it tobuildimage
.Features:
install.sh
requires sudo permissions. After that everything runs withoutsudo
(OpenWRT recommend that the image builder doesn't run under sudo).packages.txt
filetarget.txt
.gitignore
file to ignore all files and track only the files in the current repo. This way you can clone the repo, build stuff in it, and still push back to git.Hope it's ok. Let me know if any issues!
Many thanks