Skip to content

Archive for all Rocq and Coq-related opam packages organized in various repositories

License

Notifications You must be signed in to change notification settings

rocq-prover/opam

Folders and files

NameName
Last commit message
Last commit date
Jan 16, 2025
Mar 29, 2025
Mar 29, 2025
Mar 29, 2025
Feb 26, 2025
Sep 13, 2023
Jan 12, 2021
Dec 3, 2024
Aug 5, 2015
Jan 12, 2021
Mar 29, 2025
Dec 15, 2021
Jun 14, 2019

Repository files navigation

opam archive for the Rocq Prover and Coq

All opam repositories of packages for the Rocq Prover and Coq live here. Packages are organized in repositories in the following way:

  • released: packages for officially released versions of libraries and extensions for the Rocq Prover and Coq.

  • core-dev: packages for current and past development versions of the Rocq Prover and Coq.

  • extra-dev: packages for development versions of libraries and extensions for the Rocq Prover and Coq.

We welcome pull requests to the released repository adding any Rocq or Coq-related package that is compatible with a released version of the Rocq Prover or a released version of Coq. Besides libraries and extensions of general interest, this also includes paper artifacts and other specialized formalizations that are not necessarily expected to be immediately reusable by others.

Usage

To activate the repositories:

  • released (recommended default):

    opam repo add rocq-released https://rocq-prover.org/opam/released
    
  • core-dev:

    opam repo add rocq-core-dev https://rocq-prover.org/opam/core-dev
    
  • extra-dev:

    opam repo add rocq-extra-dev https://rocq-prover.org/opam/extra-dev
    

Adding packages

See the general opam documentation for how to prepare a package. You can also look at existing pull requests to see how others are adding packages.

Rocq Platform

The released opam archive is a key component of the Rocq Platform, a distribution of the Rocq Prover together with a curated set of libraries and plugins. After installing the Platform using scripts (as opposed to via a binary installer), additional packages in the released opam archive can be installed manually without the need for repository activation.

Website and opam metadata

The scripts/archive2web.ml program generates the JSON file coq-packages.json by looking at the opam files.

In particular, it uses the tags field of an opam file as follows:

  1. strings beginning with keyword: are considered as keywords
  2. strings beginning with category: are considered as categories
  3. a string beginning with logpath: is considered the Rocq logical path prefix
  4. a string beginning with date: is the date the software was last updated (not the package definition)

Example:

tags: [
  "keyword:cool"
  "keyword:stuff"
  "category:Miscellaneous/Coq Use Examples"
  "logpath:MyPrefix"
  "date:1992-12-22"
]

The homepage:, author:, maintainer:, and doc: fields are also used to generate the package entry.

The JSON file is generated during continuous integration and copied to the website. JavaScript code on the website then loads it to dynamically generate the content of the website on the client side.

See also RFC#3 and the Rocq package index.

Continuous integration

Incoming pull requests are tested on GitLab CI. @coqbot pushes any opened or synchonized pull request to a branch named pr-<number> on GitLab. It will trigger a CI build. If the CI build runs for too long and times out, any member of the Rocq organization of GitLab can start it again using the "Run Pipeline" green button at https://gitlab.inria.fr/coq/opam/-/pipelines. This will then build only on runners without pre-set timeouts (the Rocq Pyrolyse server). It may still time out if the build takes longer than the GitLab project's timeout setting (24 hours). To skip some packages the first PR message can contain a line such as ci-skip: p1.v1 p2 p3.v3 p4 where p1, p2, p3 and p4 are package names, and v1 and v3 are versions (when no versions are given, skip all versions).