#Download Nabi

Nabi 0.1.3: one line installs it, or take an archive below. The toolchain is self-contained: nabic has its own code generator and linker.

#Install script

macOS, Linux and FreeBSD:

sh
curl -fsSL https://nabi.sh | sh

Windows 11 (x64 or arm64), in PowerShell:

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

macOS

Apple silicon

aarch64-apple-darwin

.tar.xz sha256 · .tar.gz sha256

Linux

x86_64, glibc 2.34+

x86_64-unknown-linux-gnu

.tar.xz sha256 · .tar.gz sha256

Linux

arm64, glibc 2.34+

aarch64-unknown-linux-gnu

.tar.xz sha256 · .tar.gz sha256

Linux

x86_64, static (musl)

x86_64-unknown-linux-musl

.tar.xz sha256 · .tar.gz sha256

Linux

arm64, static (musl)

aarch64-unknown-linux-musl

.tar.xz sha256 · .tar.gz sha256

Windows

Windows 11, x64

x86_64-pc-windows-msvc

sha256

Windows

Windows 11, arm64

aarch64-pc-windows-msvc

sha256

FreeBSD

x86_64, FreeBSD 14 or later

x86_64-unknown-freebsd

.tar.xz sha256 · .tar.gz sha256

Each archive has a .sha256 beside it. Check it, then install from the archive:

sh
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 in SHA256SUMS.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):

text
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:

sh
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:

powershell
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:

sh
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.

HostTripleTier
macOS, Apple siliconaarch64-apple-darwinSupported
Windows 11, x64x86_64-pc-windows-msvcSupported
Windows 11, arm64aarch64-pc-windows-msvcSupported
Linux x64, glibc 2.34+x86_64-unknown-linux-gnuSupported
Linux arm64, glibc 2.34+aarch64-unknown-linux-gnuSupported
Linux x64, static (musl)x86_64-unknown-linux-muslSupported
Linux arm64, static (musl)aarch64-unknown-linux-muslSupported
FreeBSD 14+, x64x86_64-unknown-freebsdSupported
Build targetTripleTier
The eight hosts aboveSupported
Linux x86, 32-biti686-unknown-linux-gnuSupported
Windows x86, 32-biti686-pc-windows-msvcSupported
Linux ARMv7, hard floatarmv7-unknown-linux-gnueabihfSupported
Linux ARMv7, hard float, staticarmv7-unknown-linux-musleabihfSupported
WebAssembly, browserwasm32-unknown-unknownSupported
WebAssembly, WASI preview 2wasm32-wasip2Supported
WebAssembly, WASI preview 1 with threadswasm32-wasip1-threadsSupported
Android x86-64 (emulator), API 29+x86_64-linux-androidSupported
iOS simulator, Apple siliconaarch64-apple-ios-simSupported
Android arm64 devicesaarch64-linux-androidIn progress
iOS devicesaarch64-apple-iosIn progress
Linux RISC-V 64riscv64gc-unknown-linux-gnuIn progress
Linux IBM Power, little-endianpowerpc64le-unknown-linux-gnuIn progress
Linux IBM Zs390x-unknown-linux-gnuIn progress
Embedded RISC-V 32, no OSriscv32imac-unknown-none-elfIn 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 curl for 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.