chore: normalize build tooling (purescript-overlay, nix CI, Lua 5.1)#3
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR normalizes the repository’s build tooling around Nix flakes and the purescript-overlay, moving CI away from the previous Node/Bower-based workflow and aligning Lua tooling with a Lua 5.1 target.
Changes:
- Switch flake tooling from
easy-purescript-nixtopurescript-overlay, pinning PureScript/Spago binaries and Lua 5.1 tooling in the dev shell. - Replace the CI workflow with a Nix-based pipeline that builds via
nix develop -c ./scripts/buildand runsluacheckwith Lua 5.1 settings. - Add flake-local
nixConfigfor binary caches/substituters.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
flake.nix |
Reworks dev shell to use purescript-overlay and adds flake nixConfig (substituters/keys). |
flake.lock |
Updates/pins flake inputs consistent with the new overlay-based tooling. |
.github/workflows/ci.yml |
Replaces the old Node/Bower CI steps with Nix-based build + luacheck execution. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+24
to
+25
| - name: Test | ||
| run: if [ -f scripts/test ]; then nix develop -c ./scripts/test; fi |
…pts/build, run test via bash)
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.
Normalize this fork's build tooling to the ecosystem canon.
nix develop -c ./scripts/build,./scripts/test,luacheck).nix flake update.--std lua51 --no-unused-args: matches the Lua 5.1 target (math.pow/atan2 are valid there) and the FFI convention of curried fallback arguments the native impl ignores.Verified locally: build, test (where present), and luacheck all green.
Tooling only, no source changes.
Note: the PureScript test suite under
test/is not exercised by this CI. Reviving the upstream suites (with their Lua 5.1 fixes) is a separate upstream-sync task; this PR only normalizes build tooling.