Dear Kenichi, Our short-term plan is to merge opam file in the OCaml compiler distribution so that "opam pin ." or "opam install ." or "opam switch create ." works as for any other opam packages. There is an in-progress proposal by Leo White in https://github.com/ocaml/ocaml/pull/2207 ; before that gets finished and integrated, please feel free to download the patch proposed and use it locally. On Wed, Apr 10, 2019 at 2:35 AM Kenichi Asai wrote: > I want to create a local switch for a particular version of OCaml > with my own patch applied using opam 2. For opam 1.2.2, I did the > following rather low-level thing: > > - create a directory: ~/.opam/compilers/4.04.0/4.04.0+my-ocaml > - place two files in this directory: > 4.04.0+type-debugger.comp, containing where opam can find my own patch > 4.04.0+type-debugger.descr, with a description of the compiler > - add an entry to ~/.opam/repo/compiler-index: > 4.04.0+my-ocaml default 4.04.0/4.04.0+my-ocaml > > and then execute opam switch 4.04.0+my-ocaml. Can I do the similar > thing in opam 2? Thank you in advance for any info. > > -- > Kenichi Asai >