package opam-repomin

  1. Overview
  2. Docs
Minimize opam repository overlays into one unified repo

Install

dune-project
 Dependency

Authors

Maintainers

Sources

opam-repomin-1.0.0.tbz
sha256=d386aa90c5465b295d9d87de446b65da93bb0fa576fe925a4df48d60abc446b1
sha512=207d89cb7b9fc429ef172529f94d8a8f85a42f0107985f5e3fb23d2944f6b67722fb4dfc41e660e7db14b3135ab908ac1b29421de4b8917a939cbedc98b02489

doc/opam-repomin.lib/Opam_repomin/Solver/index.html

Module Opam_repomin.SolverSource

Solver for finding minimal package sets.

Sourcetype solution

A solution from the solver containing the set of required packages.

Sourceval solve : env:Env.t -> overlay:Repo.t -> full:Repo.t -> compiler:OpamPackage.t -> (solution, [ `Msg of string ]) result

Solve for the minimal set of packages.

Uses the opam-0install solver to find all packages needed to install every package in the overlay repository with the specified compiler.

  • parameter env

    Environment configuration for the solver

  • parameter overlay

    The overlay repository (takes precedence)

  • parameter full

    The full opam-repository

  • parameter compiler

    The compiler package to use

Sourceval packages : solution -> OpamPackage.t list

Get the list of packages in the solution.

Sourceval packages_from_full : solution -> overlay:Repo.t -> OpamPackage.t list

Get only the packages that need to be copied from the full repository (i.e., packages in the solution that are not already in the overlay).

Sourceval packages_from_overlay : solution -> overlay:Repo.t -> OpamPackage.t list

Get the packages in the solution that come from the overlay.