To configure the COBOL provider you can use the following environment variables:
NIXPACKS_COBOL_COMPILE_ARGS: Provide custom
NIXPACKS_COBOL_APP_NAME: Provide the name the cobol file to compile
The COBOL provider uses GnuCOBOL
GnuCOBOL and gcc are installed
the following command is used ( see section below to see how the arguments are generated ):
cobc <cobcArgs> ./<appName> <path>
NIXPACKS_COBOL_COMPILE_ARGSis set that is used`
-x -ois used
- 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 found
- Lastly the source files are searched for any file with the
cblextension. If one is found the file name is used.
- The source files are searched for
*<appName>.cblif found that path is used.
./app-name is run
GnuCOBOL and gcc are cached between builds