Since OPAM 2.1, the depext plugin handling external dependencies is included in OPAM directly, so one can do eg. opam install . --depext-only. The syntax in .opam files is unchanged, eg.:
For now, if I am not mistaken, the way to provide this field when generating OPAM files is through a .opam.template. My question (or feature request) is the following:
Are there any plans to introduce a stanza for dune-project that would allow declaring those external dependencies directly in there and generate the appropriate field in .opam?
Example of Current Behaviour
For now, I have a dune-project file containing most of the metadata:
Desired Behaviour
Since OPAM 2.1, the
depext
plugin handling external dependencies is included in OPAM directly, so one can do eg.opam install . --depext-only
. The syntax in.opam
files is unchanged, eg.:For now, if I am not mistaken, the way to provide this field when generating OPAM files is through a
.opam.template
. My question (or feature request) is the following:Are there any plans to introduce a stanza for
dune-project
that would allow declaring those external dependencies directly in there and generate the appropriate field in.opam
?Example of Current Behaviour
For now, I have a
dune-project
file containing most of the metadata:And a
.opam.template
file containing the external dependencies:Both together allow the generation of the expected
.opam
file:Example of Expected Behaviour
I would like to have a
dune-project
file containing all the metadata:No
.opam.template
file:And the same generated
.opam
as before: