Environment Variables¶
Idris 2 recognises a number of environment variables, to decide where to look for packages, external libraries, code generators, etc. It currently recognises, in approximately the order you’re likely to need them:
EDITOR
- Sets the editor used in REPL :e commandIDRIS2_CG
- Sets which code generator to use when compiling programsIDRIS2_PACKAGE_PATH
- Lists the directories where Idris2 looks for packages, in addition to the defaults (which are under theIDRIS2_PREFIX
and in thedepends
subdirectory of the current working directory). Directories are separated by a:
, or a;
on WindowsIDRIS2_PATH
- Places Idris2 looks for import files, in addition to the imports in packagesIDRIS2_DATA
- Places Idris2 looks for its data files. These are typically support code for code generators.IDRIS2_LIBS
- Places Idris2 looks for libraries used by code generators.IDRIS2_PREFIX
- Gives the Idris2 installation prefixCHEZ
- Sets the location of thechez
executable used in Chez codegenRACKET
- Sets the location of theracket
executable used in Racket codegenRACKET_RACO
- Sets the location of theraco
executable used in Racket codegenGAMBIT_GSI
- Sets the location of thegsi
executable used in Gambit codegenGAMBIT_GSC
- Sets the location of thegsc
executable used in Gambit codegenGAMBIT_GSC_BACKEND
- Sets thegsc
executable backend argumentIDRIS2_CC
- Sets the location of the C compiler executable used in RefC codegenCC
- Sets the location of the C compiler executable used in RefC codegenNODE
- Sets the location of thenode
executable used in Node codegenPATH
- used to search for executables in certain codegens