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/Repo/index.html

Module Opam_repomin.RepoSource

Repository handling.

Sourcetype t

An opam repository.

Sourceval load : Fpath.t -> (t, [ `Msg of string ]) result

Load an opam repository from the given path. The path should point to a directory containing a packages/ subdirectory.

Sourceval packages_dir : t -> Fpath.t

Return the path to the packages directory.

Sourceval list_packages : t -> OpamPackage.Name.t list

List all package names in the repository.

Sourceval list_versions : t -> OpamPackage.Name.t -> OpamPackage.Version.t list

List all versions of a package in the repository.

Sourceval has_package : t -> OpamPackage.t -> bool

Check if a specific package version exists in the repository.

Sourceval opam_file : t -> OpamPackage.t -> OpamFile.OPAM.t option

Load the opam file for a specific package version.