Merged
Conversation
Owner
|
I don't really know anything about nix so I have no idea if this is right or not, but it looks reasonable enough to me |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Provide support for the Nix package manager. The following targets are supported, with the mark emojis indicating code testing:
✅
x86_64-linux✅
x86_64-darwin✅
aarch64-linux❓
aarch64-darwinThis is achieved using the Nixpkgs derivation builder for Rust, with the
cargo-taurihook for build support, as well as the communitybun2nixhook for reproducible Bun dependency fetching. No hardcoded constants are involved, and in particular no hashes, patchfiles or additional lockfiles are needed, which allows the derivation to keep working over time with little to no maintenance.The logic is contained within
flake.nix, thus transforming the Git repo into a flake. The following are valid ways to use it with Nix:nix run github:nab138/iloadernix run iloader)packages.${system}nix-{build,shell}andNIX_PATH) thanks to integration viaflake-compatFinally, the
nix-systemspattern is used to allow users to easily import iLoader on arbitrary architectures, and there istreefmt-nixsupport for Nix styling withnixfmt.