The attached patch depends on the previously submitted for inclusion dune 2.4.0 update (which may not go into master) The package is switched from ocaml-build-system to dune-build-system. This one is untested though -- Vincent Legoll