Skip to content

refactor(nix): migrate to flake-parts and extract package.nix#28

Merged
mizchi merged 4 commits intomizchi:mainfrom
ryoppippi:systems
Apr 4, 2026
Merged

refactor(nix): migrate to flake-parts and extract package.nix#28
mizchi merged 4 commits intomizchi:mainfrom
ryoppippi:systems

Conversation

@ryoppippi
Copy link
Copy Markdown
Contributor

Summary

  • Switch moonbit-overlay back to the official upstream (moonbit-community/moonbit-overlay)
  • Add aarch64-linux to supported systems
  • Migrate flake from hand-rolled forAllSystems/genAttrs to flake-parts mkFlake
  • Extract build derivation into package.nix and add default.nix for non-flake consumers
  • Update README with non-flake usage example

Test plan

  • nix flake check --no-build passes
  • nix build succeeds

Replace hand-rolled forAllSystems/genAttrs boilerplate with
flake-parts mkFlake. This simplifies the multi-system iteration
and makes the flake structure more composable for future modules.
Move the buildMoonPackage derivation into a standalone package.nix
so it can be reused via callPackage from both the flake and
non-flake consumers. Add default.nix as an entry point for users
without flakes. Update README with non-flake usage example.
@mizchi mizchi merged commit 9d166b6 into mizchi:main Apr 4, 2026
7 checks passed
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.

2 participants