Skip to content

fix(nix): honor opam source subdirectories before patching - #16990

Merged
Alizter merged 2 commits into
ocaml:mainfrom
Alizter:nix-opam-subpaths
Nov 10, 2026
Merged

Alizter merged 2 commits into
ocaml:mainfrom
Alizter:nix-opam-subpaths

Conversation

@Alizter

@Alizter Alizter commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Honor opam's x-subpath when selecting the unpacked source root, before patches are applied, for both generated packages and overridden Nix packages. Share normalization and quoted-value parsing across source fields, preserve literal subpaths, and keep inherited unpack hooks separate. Set DUNE_ROOT=. for generated packages so builds remain rooted in the selected source directory rather than a surrounding project.

Split out of #16969.

@Alizter
Alizter marked this pull request as ready for review November 10, 2026 17:59
@Alizter
Alizter merged commit b45237a into ocaml:main Nov 10, 2026
36 of 63 checks passed
@Alizter
Alizter deleted the nix-opam-subpaths branch November 10, 2026 19:37
@Alizter Alizter added this to the 3.26.0 milestone Nov 11, 2026
Alizter added a commit that referenced this pull request Nov 25, 2026
Update both Nix and opam CI to OxCaml `5.4.0-ox9`, sharing
compiler/repository pins and the upstream odoc port from
ocaml/odoc#1520. Update the affected integration expectations and keep
the OxCaml patch guards enabled. Formatting and unrelated CI cleanups
remain separate follow-ups.

Follows merged #16968, #16985, #16990, and #16994.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant