caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Local switch using opam 2
@ 2019-04-10  0:35 Kenichi Asai
  2019-04-10  9:07 ` Gabriel Scherer
  0 siblings, 1 reply; 3+ messages in thread
From: Kenichi Asai @ 2019-04-10  0:35 UTC (permalink / raw)
  To: caml-list

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-13 11:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-10  0:35 [Caml-list] Local switch using opam 2 Kenichi Asai
2019-04-10  9:07 ` Gabriel Scherer
2019-04-13 11:15   ` Kenichi Asai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).