Pin-depends in dune

I was wondering if there is a way to use pin-depends in dune-project in the package stanza? I couldn’t find it in the dune documentation.

I don’t think there is, but you can create a xxx.opam.template file that will be honored, eg:

pin-depends: [
  [ "cohttp-lwt-jsoo.4.0.0" "git+" ]

Indeed, if there isn’t a stanza I can use this solution. Thanks for your answer!