13 lines
534 B
Bash
Executable File
13 lines
534 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build the flashable Pi 4 SD-card image (cross-compiled from x86_64; the
|
|
# image's platform in rpi4-image.scm is aarch64).
|
|
# Result: ./guix-rpi4-claude.img (symlink into the store, registered as a GC
|
|
# root so `guix gc` keeps it; flash-rpi.sh writes it).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
export GUIX_PACKAGE_PATH="$PWD/packages:$HOME/channels/nonguix"
|
|
rm -f guix-rpi4-claude.img
|
|
OUT=$(guix system image -r guix-rpi4-claude.img rpi4-image.scm "$@")
|
|
echo "store: $OUT"
|
|
echo "image: $PWD/guix-rpi4-claude.img"
|