Start

Getting started

Clone the monorepo, install the toolchain and use the shared task runner to build, test and preview apps.

Everything is built from a single clone. The commands below come straight from the repository README; once the toolchain is installed, cargo app-help prints the full usage of the task runner.

#Prerequisites

  • Rust & Cargo (edition = "2024"):
    • Targets: x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu (device cross-builds), and wasm32-unknown-unknown (web workbench / bhoo-web).
  • System Libraries (Linux desktop/device builds): Wayland client/EGL/GLES3 headers, libinput, libudev, libxkbcommon, libseat, libgbm, pkg-config.
  • Python 3: Build helpers, Android XML importers, Wayland pixel tests, and NixOS helper scripts.
  • Nix (for codes/os/specrte-nix-f1): Cross-compiling system closures, kernel, and boot images for aarch64-linux.
  • Node.js & Chromium/Playwright (optional): Angular Material comparison build and web verification tests.

#Clone with Submodules

sh
git clone --recurse-submodules git@github.com:spectre-oss/spectreos.git
cd spectreos

If already cloned without submodules:

sh
git submodule update --init --recursive

Optional: symlink subproject docs/ directories into the top-level docs/ folder:

sh
make init

#Unified App Commands (.cargo/config.toml + spectre-xtask)

All SpectreOS Rust apps share a unified task runner (cargo app-help for full usage) that shares a common build directory (/tmp/spectre-apps-target, overridable via SPECTRE_TARGET_DIR or CARGO_TARGET_DIR):

sh
# Check, test, or build a single app (`files`, `settings`, `calendar`, `keyboard`, `wisp`) or `all`
cargo app-check all
cargo app-test all
cargo dev wisp
cargo release all

# Run a standalone desktop preview window (Wayland)
cargo app-run settings
cargo app-run files
cargo app-run wisp

# Launch the interactive WASM browser workbench (`bhoo-web-debug`)
cargo test-web settings
cargo test-web-watch calendar

# Clean shared Cargo target directories
cargo clean-all

#libbhoo UI Toolkit & Web Demos

sh
# Core unit & integration tests
make -C codes/libs/ui/libbhoo check
make -C codes/libs/ui/libbhoo test

# Headless Weston + Mesa GLES pixel tests
make -C codes/libs/ui/libbhoo test-wayland

# Build & serve the Rust-only WASM playground on http://127.0.0.1:8766
make -C codes/libs/ui/libbhoo serve

# Package WebXDC demo bundles
make -C codes/libs/ui/libbhoo webxdc-gallery

#Wisp Compositor & Remote Viewer

sh
# Wisp tests and compositor builds
make -C codes/apps/wisp test
make -C codes/apps/wisp build-wayland       # desktop preview window
make -C codes/apps/wisp build-compositor    # production DRM/KMS device compositor
make -C codes/apps/wisp build_development   # device compositor with remote_control enabled

# Native Rust remote viewer
cargo test --locked --manifest-path codes/utils/wisp_remote_viewer/Cargo.toml
cargo run --release --locked --manifest-path codes/utils/wisp_remote_viewer/Cargo.toml -- --session poco

#Mobile NixOS (codes/os/specrte-nix-f1)

sh
# Fetch pinned upstream sources, evaluate, test, and build Poco F1 images
make -C codes/os/specrte-nix-f1 test
make -C codes/os/specrte-nix-f1 eval
make -C codes/os/specrte-nix-f1 boot-image PANEL=tianma
make -C codes/os/specrte-nix-f1 build PANEL=tianma

See codes/os/specrte-nix-f1/README.md for diverted Nix store usage, panel selection (tianma / ebbg), and installation instructions.

#Shiraz

Shiraz, the Android compatibility layer, has its own build and documentation in its separate repository. It is checked out at codes/shiraz-core when you clone with submodules.

#Next steps

View source on GitHub →