Skip to content

chore: normalize build tooling (purescript-overlay, nix CI, Lua 5.1)#4

Merged
Unisay merged 2 commits into
masterfrom
chore/align-overlay
Jun 14, 2026
Merged

chore: normalize build tooling (purescript-overlay, nix CI, Lua 5.1)#4
Unisay merged 2 commits into
masterfrom
chore/align-overlay

Conversation

@Unisay

@Unisay Unisay commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Normalize this fork's build tooling to the ecosystem canon.

  • Replace the dead bower CI workflow with nix CI (nix develop -c ./scripts/build, ./scripts/test, luacheck).
  • Switch the flake to purescript-overlay (purs 0.15.16, spago-bin 0.21.0, lua51 toolchain, binary caches), refreshed via nix flake update.
  • luacheck runs --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.

@Unisay Unisay self-assigned this Jun 14, 2026
@Unisay Unisay requested a review from Copilot June 14, 2026 12:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s Nix flake and GitHub Actions CI to align with current PureScript/Lua ecosystem tooling: switching the dev shell to purescript-overlay, targeting Lua 5.1 tooling, and replacing the legacy Node/bower CI with a Nix-based workflow.

Changes:

  • Switch flake inputs from easy-purescript-nix to purescript-overlay, updating PureScript/Spago toolchain versions and adding flake-level binary cache configuration.
  • Replace the GitHub Actions workflow with a Nix-based CI that runs ./scripts/build, ./scripts/test (if present), and luacheck for Lua 5.1.
  • Refresh flake.lock as part of the flake input changes.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
flake.nix Moves the dev shell to purescript-overlay, updates toolchain inputs, and adds nixConfig cache settings.
flake.lock Updates pinned inputs to match the new flake configuration and refreshed dependencies.
.github/workflows/ci.yml Replaces Node/bower CI with a Nix-based build/test/luacheck workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
npm install
bower install --production
- name: Build
run: nix develop -c ./scripts/build
@Unisay Unisay merged commit 213598c into master Jun 14, 2026
1 check passed
@Unisay Unisay deleted the chore/align-overlay branch June 14, 2026 13:03
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