# Recommended way to provide config when installing OPAM packages?

**URL:** https://discuss.ocaml.org/t/recommended-way-to-provide-config-when-installing-opam-packages/10444
**Category:** Ecosystem
**Created:** [September 7, 2022, 7:16pm UTC](https://discuss.ocaml.org/t/recommended-way-to-provide-config-when-installing-opam-packages/10444 "2022-09-07T19:16:31Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![sim642](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/sim642/32/3597_2.png) [@sim642](https://discuss.ocaml.org/u/sim642)
#### Post date: [September 7, 2022, 7:41pm UTC](https://discuss.ocaml.org/t/recommended-way-to-provide-config-when-installing-opam-packages/10444/3 "2022-09-07T19:41:59Z")

</div>

The OCaml compiler itself achieves something of this sort by having a number of optional empty option packages whose presence (or the lack of it) affects the compiler itself: [opam - ocaml-variants.4.14.0+options](https://opam.ocaml.org/packages/ocaml-variants/ocaml-variants.4.14.0+options/).  
There’s a longer description of that here: [Experimental new layout for the ocaml-variants packages in opam-repository](https://discuss.ocaml.org/t/experimental-new-layout-for-the-ocaml-variants-packages-in-opam-repository/6779).

Although I’m not sure how recommended this approach is for other packages, especially for 30 parameters. Also, this doesn’t work well if one parameter has many values (the compiler ones are essentially boolean).

Boiling it down to a handful of common configurations might still be reasonable. If someone wishes to fine-tune things more precisely, they might be better off checking out the source repository directly.

---

_[View the full topic](https://discuss.ocaml.org/t/recommended-way-to-provide-config-when-installing-opam-packages/10444)._
