Skip to content

Nix CI: build MetaRocq main with its dune-based overlay - #750

Merged
mattam82 merged 1 commit into
mainfrom
nix-metarocq-dune-overlay
Nov 2, 2026
Merged

mattam82 merged 1 commit into
mainfrom
nix-metarocq-dune-overlay

Conversation

@mattam82

@mattam82 mattam82 commented Nov 2, 2026

Copy link
Copy Markdown
Member

MetaRocq main switched its build system to dune, which breaks the reverse-dependency job: the nixpkgs metarocq derivation does not support it.

  • Add .nix/coq-overlays/metarocq/default.nix, copied unchanged from MetaRocq main's own overlay. It builds each package with dune build -p rocq-metarocq-<pkg>. The safechecker and erasure plugins are now part of the metarocq-safechecker and metarocq-erasure packages, and *-plugin aliases are kept.
  • Drop the dune.override.version = "3.21.1" pin: MetaRocq main declares (lang dune 3.22). CI now uses the nixpkgs default (3.23.1), as MetaRocq's own CI does.
  • Regenerate nix-action-default.yml: the metarocq-safechecker-plugin and metarocq-erasure-plugin jobs are removed.

Tested locally: the metarocq job evaluates, and metarocq-utils (with Rocq master, stdlib and equations built under dune 3.23.1) builds. The rest of the MetaRocq chain is left to CI.

🤖 Generated with Claude Code

MetaRocq main now builds with dune, which the nixpkgs metarocq
derivation does not support. Use MetaRocq's own overlay (copied from
its main branch), which builds each package with `dune build -p` and
folds the plugins into the safechecker and erasure packages.

MetaRocq main requires dune 3.22, so drop the dune 3.21.1 pin and use
the nixpkgs default (3.23.1), as MetaRocq's CI does. Regenerate the
workflow: the metarocq-*-plugin jobs are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mattam82
mattam82 merged commit 418c717 into main Nov 2, 2026
33 checks passed
@mattam82
mattam82 deleted the nix-metarocq-dune-overlay branch November 2, 2026 17:07
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.

1 participant