Skip to content

Commit

Permalink
Update doc/pages/Manual.md
Browse files Browse the repository at this point in the history
Co-authored-by: R. Boujbel <rjbou@ocamlpro.com>
  • Loading branch information
kit-ty-kate and rjbou authored Aug 7, 2024
1 parent edabf68 commit 67b4631
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions doc/pages/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1112,14 +1112,17 @@ files.
build, install and remove scripts.

The following environment variables are set by opam (but can be overridden by `build-env`):
- `CDPATH=`
- `MAKEFLAGS=`
- `MAKELEVEL=`
- `OPAM_SWITCH_PREFIX=<switch prefix>`
- `OPAMSWITCH=<switch name>`
- `OPAM_PACKAGE_NAME=<pkg>` (`<pkg>` is the name of the package being built/installed/removed)
- `OPAM_PACKAGE_VERSION=<ver>` (`<ver>` is the version of the package being built/installed/removed)
- `OPAMCLI=2.0` (since opam 2.1)
- can be overridden by `build-env`:
- `CDPATH=`
- `MAKEFLAGS=`
- `MAKELEVEL=`
- `OPAM_PACKAGE_NAME=<pkg>` (`<pkg>` is the name of the package being built/installed/removed)
- `OPAM_PACKAGE_VERSION=<ver>` (`<ver>` is the version of the package being built/installed/removed)
- `OPAMCLI=2.0` (since opam 2.1)
- non overwritable:
- `OPAMROOT`=<opam root path>`
- `OPAMSWITCH=<switch name>`
- `OPAM_SWITCH_PREFIX=<switch prefix>`
- `TMP` and `TMPDIR` are set by the sandbox script (bubblewrap), but should not be relied on since the sandbox is not used on all platforms and can be disabled by the user.

- <a id="opamsection-extra-sources">`extra-source <string> "{" <url-file> "}"`</a>:
Expand Down

0 comments on commit 67b4631

Please sign in to comment.