Dune with external Ocaml library

Dune can use any library that is installed according to Findlib conventions (including the presence of META file). It suffices to set the OCAMLPATH variable to point to the directory containing the Findlib packages.

If your library does not have Findlib metadata (ie a META file), I’m afraid you are out of luck, but adding such metadata is typically easy.

Cheers,
Nicolas