opam
opam copied to clipboard
Allow to have filters for setenv
It is increasingly useful, especially for conf packages and packages linking against external libraries, to be able to set specific env variables (e.g. PKG_CONFIG_PATH but not just that) specific for the os and the distribution in order to compile successfully. Would it be possible to have the full set of filtes available also for setenv?
See as an example the use done here: https://github.com/ocaml/opam-repository/pull/25076
The mechanism itself can be added with an x-
field (not recommended), but for the full feature, it needs a change in the opam file syntax, that can't be done before 3.0.