mix zig.get (zig_get v0.17.0)

View Source

obtains the Zig compiler toolchain

$ mix zig.get [--version VERSION] [--file FILE] [--os OS] [--arch ARCH] [other options]

the zigler compiler will be downloaded to ZIG_ARCHIVE_PATH/VERSION

if unspecified, VERSION defaults to 0.17.0.

if FILE is specified, will use that tarball instead of getting from the internet.

if unspecified, ZIG_ARCHIVE_PATH defaults to the user cache path given by :filename.basedir/3 with application name "zigler".

OS and ARCH will be detected from the current build system. It's not recommended to change these arguments.

environment variable options

  • TAR_COMMAND: path to a tar executable that is equivalent to gnu tar. only useful for non-windows architectures.
  • ZIG_ARCHIVE_PATH: path to desired directory to achive the zig compiler toolchain.
  • VERIFY: set to false to skip sha256 verification of the downloaded tarball against the manifest at https://ziglang.org/download/index.json.

other options

  • --force overwrites the existing installation if it exists.

Summary

Functions

extract(bin, opts)

run(app_opts)

Callback implementation for Mix.Task.run/1.