ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.21k stars 348 forks source link

Syntax for referring to environment variables in opam commands #6035

Open dra27 opened 2 weeks ago

dra27 commented 2 weeks ago

We could use a way of referring to variables in the environment in order to provide slightly more portable approaches to the "sh" "-exc" "non-portable-command-using-sh-so-we-can-refer-to-$CFLAGS" approach!

Something like %{env:CFLAGS}%, etc.

dra27 commented 2 weeks ago

(opened because I keep hitting it and wish to ensure it gets to a 3.x-shaped task list)