I’m currently trying to build a nix expression for a static analysis tool, infer, that has many opam dependencies relying on the ocaml 4.06.1+flambda compiler. Is there a way to install the ocaml+flambda compiler straight from nix rather than compiling it? Currently, I have:
buildInputs = [ ocaml opam_1_2 ... ];
postUnpack = ""
opam init
opam switch 4.06.1+flambda
"";
But manually calling opam switch
to configure ocaml can be time-consuming while I’m trying to build.