Pin-depends in dune

Hi,
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+https://github.com/routineco/ocaml-cohttp#b0ea1468f55dc6fe1b59929ee4545b580f63af0c" ]
]
2 Likes

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