Skip to content

Materialize buildOpamMonorepo#149

Merged
balsoft merged 4 commits into
tweag:mainfrom
ju1m:materialize-monorepo
Feb 14, 2026
Merged

Materialize buildOpamMonorepo#149
balsoft merged 4 commits into
tweag:mainfrom
ju1m:materialize-monorepo

Conversation

@ju1m
Copy link
Copy Markdown

@ju1m ju1m commented Jan 28, 2026

This PR introduces materialized counter-parts to:

  • queryToMonorepo
  • buildOpamMonorepo

named:

  • materializeQueryToMonorepo
  • materializeBuildOpamMonorepo
  • unmaterializeQueryToMonorepo

It enables to package MirageOS unikernels without IFD (ie. with --option allow-import-from-derivation false).

I came up with those copying as best as I could what was already done in opam-nix to materialize queryToScope and buildOpamProject in materialize, materializeOpamProject, materializedDefsToScope.
But I'm new to opam-nix and do not have much understanding of every details or the big picture, I just needed an IFD-free version of a MirageOS project in NGIpkgs (DNSvizor) and followed what hillingar did, replacing everything I needed to avoid IFD.
So I may have made obvious mistakes.

@ju1m ju1m mentioned this pull request Jan 28, 2026
4 tasks
@balsoft
Copy link
Copy Markdown
Collaborator

balsoft commented Jan 28, 2026

Seems fine overall. Have you tested it?

Copy link
Copy Markdown
Collaborator

@balsoft balsoft left a comment

Choose a reason for hiding this comment

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

I have looked at the packaging you are doing with this (ngi-nix/ngipkgs#2018), it seems to build and it looks OK to me as well.

So everything looks good, the only thing left is to please add the docs to DOCUMENTATION.md.

@ju1m ju1m force-pushed the materialize-monorepo branch from 2427a93 to 6a59579 Compare February 4, 2026 01:30
Comment thread DOCUMENTATION.md
@ju1m ju1m force-pushed the materialize-monorepo branch from 6a59579 to 963f498 Compare February 12, 2026 03:24
@balsoft balsoft merged commit 2e20bbb into tweag:main Feb 14, 2026
1 check passed
@balsoft
Copy link
Copy Markdown
Collaborator

balsoft commented Feb 14, 2026

Thanks!

ju1m pushed a commit to ju1m/ngipkgs that referenced this pull request Feb 16, 2026
ju1m pushed a commit to ju1m/ngipkgs that referenced this pull request Feb 23, 2026
@ju1m ju1m deleted the materialize-monorepo branch April 23, 2026 20:39
ju1m pushed a commit to ju1m/ngipkgs that referenced this pull request Apr 30, 2026
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