generate_opam_files

(generate_opam_files ...)

Added in version 1.10.

Use metadata specified in the dune-project file to generate .opam files.

To enable this integration, add the following field to the dune-project file:

(generate_opam_files)

With this field, every time one calls Dune to execute some rules (either via dune build, dune runtest, or something else), the opam files get generated.

To add opam fields not directly supported by dune-project, you can use <package-name>.opam.template files (see Packages).

See also

package for fields supported by dune-project

Packages for more information on opam.template files