Work in progress to adapt device specific and customer-specific out-of-tree configurations for Spectrum OS.
# Upstream Spectrum OS sources:
$ git clone -b wayland https://spectrum-os.org/git/spectrum
$ git clone -b wayland https://spectrum-os.org/git/nixpkgs-spectrum
# This repo:
$ git clone https://github.com/tiiuae/<this-repo-name>
While in build directory, run
$ nix-build -I nixpkgs=nixpkgs-spectrum -I spectrum-config=<this-repo-name>/<config-name>.nix <this-repo-name>/release/live/
You can add nixpkgs
and spectrum-config
variables to your NIX_PATH
The successful build produces result
link in build directory. Run
$ sudo dd if=result of=/dev/<SDcard> bs=1M conv=fsync status=progress oflag=direct
to flash the image to your SD card.
Hint: you can find which /dev/ file is your SDcard using 'lsblk' and 'dmesg' commands.
Put SD card into the board and switch it on. You should see a lovely Spectrum desktop at your display.
- Currently the only device supported is
imx8qm-evk
, more devices very soon! - There is no cross-compilation support (yet). Use native
aarch64
hardware to build the image. - There are still some hardware-specific parts that need to be reworked.