@dbuenzli opam uses essentially `exec` so expects an executable path followed by an arg array. If you want to modify the env, `build-env` is what you are looking for.