Skip to content

Building with Nix

Taner Sener edited this page Jul 28, 2026 · 4 revisions
  1. Install Nix by following the instructions at nixos.org
  2. From the project root, invoke the nix-<platform>.sh wrapper for your target platform. Each wrapper prepares the Nix environment and then runs the build for you

Every wrapper requires a Nix profile, passed with -p/--profile. Run --list-profiles to see the profiles available on your system (they differ per operating system).

./nix-android.sh --list-profiles

Android

./nix-android.sh -p android-r27d

iOS / iPadOS

./nix-ios.sh -p xcode26

Linux

./nix-linux.sh -p default

macOS

./nix-macos.sh -p xcode26

tvOS

./nix-tvos.sh -p xcode26

visionOS

./nix-visionos.sh -p xcode26

Web

./nix-web.sh -p web-wasm32-emscripten

All wrappers support additional options to enable/disable specific external libraries and/or architectures. Run any wrapper with --help to see the full list of options for that platform, for example:

./nix-android.sh --help

Clone this wiki locally