#Download Nabi
nabic has its own code generator and linker.#Install script
macOS, Linux and FreeBSD:
curl -fsSL https://nabi.sh | sh
Windows 11 (x64 or arm64), in PowerShell:
powershell -ExecutionPolicy Bypass -c "irm https://nabi.sh/install.ps1 | iex"
The script picks the archive for your machine (on Windows, by the machine's architecture, so arm64 even from an emulated x64 PowerShell), checks its SHA-256 and unpacks it into ~/.nabi (Windows: %USERPROFILE%\.nabi). install.sh --version <v> and install.ps1 -Version <v> pick a release by its exact version (0.1.3); without them you get the newest release.
The toolchain comes with the official packages, so code that uses them builds without a network. To leave them out: curl -fsSL https://nabi.sh | sh -s -- --no-packages, or set NABI_NO_PACKAGES=1 before either script (install.ps1 -NoPackages when run from a file). This runs nabi component remove packages after the install.
#Archives
Linux
x86_64, glibc 2.34+
x86_64-unknown-linux-gnuLinux
arm64, glibc 2.34+
aarch64-unknown-linux-gnuLinux
x86_64, static (musl)
x86_64-unknown-linux-muslLinux
arm64, static (musl)
aarch64-unknown-linux-muslFreeBSD
x86_64, FreeBSD 14 or later
x86_64-unknown-freebsdEach archive has a .sha256 beside it. Check it, then install from the archive:
shasum -a 256 -c nabi-0.1.3-aarch64-apple-darwin.tar.xz.sha256
sh install.sh --archive nabi-0.1.3-aarch64-apple-darwin.tar.xz
The .tar.xz is about half the size of the .tar.gz; on Linux, tar needs xz to unpack it. An unpacked archive also installs itself with its own install.sh (Windows: install.ps1).
#Verify your download
The install scripts check the SHA-256 of the archive they fetch. To check an archive yourself, each release also has:
SHA256SUMS: the SHA-256 of every archive in the release, signed with minisign inSHA256SUMS.minisig;- a GitHub build provenance attestation for every archive, which ties it to the release workflow run that built it.
The release signing key (key ID B33E6FE61BE5314C):
untrusted comment: minisign public key B33E6FE61BE5314C
RWRMMeUb5m8+s0rEtzbR47dmyrMdlGyGQSvWUn/Ob5QYh0GHgs1GvJEs
Download SHA256SUMS and SHA256SUMS.minisig from the release into the directory with your archive, then check the signature and the checksum:
minisign -Vm SHA256SUMS -P RWRMMeUb5m8+s0rEtzbR47dmyrMdlGyGQSvWUn/Ob5QYh0GHgs1GvJEs
sha256sum -c --ignore-missing SHA256SUMS # Linux, FreeBSD
shasum -a 256 -c --ignore-missing SHA256SUMS # macOS
On Windows, in PowerShell, with minisign.exe from its releases:
minisign -Vm SHA256SUMS -P RWRMMeUb5m8+s0rEtzbR47dmyrMdlGyGQSvWUn/Ob5QYh0GHgs1GvJEs
(Get-FileHash nabi-0.1.3-x86_64-pc-windows-msvc.zip -Algorithm SHA256).Hash.ToLower()
Select-String nabi-0.1.3-x86_64-pc-windows-msvc.zip SHA256SUMS
The two hashes must match. With the GitHub CLI, check the attestation of an archive:
gh attestation verify nabi-0.1.3-aarch64-apple-darwin.tar.xz --repo nabi-lang/nabi
The binaries are not code-signed yet (no macOS notarization, no Windows Authenticode), so Gatekeeper and SmartScreen warn about an archive downloaded with a browser. The checks above are how to trust a download for now.
#Platforms
A target is Supported once its tests pass in a real environment for it. Hosts run the toolchain and have a release archive; build targets are what nabi build --target <triple> compiles for.
| Host | Triple | Tier |
|---|---|---|
| macOS, Apple silicon | aarch64-apple-darwin | Supported |
| Windows 11, x64 | x86_64-pc-windows-msvc | Supported |
| Windows 11, arm64 | aarch64-pc-windows-msvc | Supported |
| Linux x64, glibc 2.34+ | x86_64-unknown-linux-gnu | Supported |
| Linux arm64, glibc 2.34+ | aarch64-unknown-linux-gnu | Supported |
| Linux x64, static (musl) | x86_64-unknown-linux-musl | Supported |
| Linux arm64, static (musl) | aarch64-unknown-linux-musl | Supported |
| FreeBSD 14+, x64 | x86_64-unknown-freebsd | Supported |
| Build target | Triple | Tier |
|---|---|---|
| The eight hosts above | Supported | |
| Linux x86, 32-bit | i686-unknown-linux-gnu | Supported |
| Windows x86, 32-bit | i686-pc-windows-msvc | Supported |
| Linux ARMv7, hard float | armv7-unknown-linux-gnueabihf | Supported |
| Linux ARMv7, hard float, static | armv7-unknown-linux-musleabihf | Supported |
| WebAssembly, browser | wasm32-unknown-unknown | Supported |
| WebAssembly, WASI preview 2 | wasm32-wasip2 | Supported |
| WebAssembly, WASI preview 1 with threads | wasm32-wasip1-threads | Supported |
| Android x86-64 (emulator), API 29+ | x86_64-linux-android | Supported |
| iOS simulator, Apple silicon | aarch64-apple-ios-sim | Supported |
| Android arm64 devices | aarch64-linux-android | In progress |
| iOS devices | aarch64-apple-ios | In progress |
| Linux RISC-V 64 | riscv64gc-unknown-linux-gnu | In progress |
| Linux IBM Power, little-endian | powerpc64le-unknown-linux-gnu | In progress |
| Linux IBM Z | s390x-unknown-linux-gnu | In progress |
| Embedded RISC-V 32, no OS | riscv32imac-unknown-none-elf | In progress |
The targets in progress have run only under emulation; --target refuses them and names what to use for now. The roadmap has them for the 0.2 series.
You download one archive, for your own machine: every archive carries the runtime of every Supported build target, so nabi build --target <triple> builds for another from any host (Apple targets only on macOS; Android ones need the NDK). nabic --print target-list lists the triples. See Tools for what each needs.
#What else you need
- macOS: the Xcode Command Line Tools (
xcode-select --install), for the SDK that linking needs. - Linux: nothing; glibc 2.34 or later (Ubuntu 22.04, Debian 12, RHEL 9 and newer), or any distribution with the static musl archive.
- FreeBSD: FreeBSD 14 or later on x86_64, and
curlfor the install script (pkg install curl). - Windows: Windows 11, on x64 or arm64; nothing else.
Intel Macs and FreeBSD on arm64 have no release archive and are not a target. Every release, with its notes, is on GitHub. Questions: the FAQ. Next: Getting started.