COBOL#
Environment Variables#
To configure the COBOL provider you can use the following environment variables:
NIXPACKS_COBOL_COMPILE_ARGS: Provide customcobcargumentsNIXPACKS_COBOL_APP_NAME: Provide the name the cobol file to compile
Setup#
The COBOL provider uses GnuCOBOL
Install#
GnuCOBOL and gcc are installed
Build#
the following command is used ( see section below to see how the arguments are generated ): cobc <cobcArgs> ./<appName> <path>
cobcArgs#
- If
NIXPACKS_COBOL_COMPILE_ARGSis set that is used` - Otherwise
-x -ois used
appName#
- First if
NIXPACKS_COBOL_APP_NAMEis set that is used. - next the source files are searched for the presence of an
index.cbl. If one is foundindexis used - Lastly the source files are searched for any file with the
cblextension. If one is found the file name is used.
path#
- The source files are searched for
*<appName>.cblif found that path is used.
Start#
./app-name is run
Caching#
GnuCOBOL and gcc are cached between builds