working example with fixed flake

This commit is contained in:
Filipriec
2025-09-29 18:07:53 +02:00
parent d1ec1fd689
commit 1f7d35a6d3
10 changed files with 1747 additions and 12 deletions

View File

@@ -25,21 +25,25 @@
espup
];
shellHook = ''
echo ">>> ESP32 DevShell (esp-hal only)"
shellHook = ''
echo ">>> ESP32 DevShell (esp-hal only)"
if [ ! -d "$HOME/.espup" ]; then
echo "Running espup install..."
espup install
fi
if [ ! -d "$HOME/.espup" ]; then
echo "Running espup install..."
espup install
fi
# Activate Xtensa Rust toolchain
export RUSTUP_TOOLCHAIN=esp
export PATH=$HOME/.rustup/toolchains/esp/bin:$PATH
# Activate Xtensa Rust toolchain
export RUSTUP_TOOLCHAIN=esp
export PATH=$HOME/.rustup/toolchains/esp/bin:$PATH
echo "Xtensa Rust toolchain ready."
rustc --version
'';
# Add GCC/binutils path for xtensa-esp32-elf-gcc
export PATH=$HOME/.rustup/toolchains/esp/xtensa-esp-elf/esp-14.2.0_20240906/xtensa-esp-elf/bin:$PATH
echo "Xtensa Rust toolchain ready."
rustc --version
which xtensa-esp32-elf-gcc || echo " xtensa-esp32-elf-gcc not found in PATH"
'';
};
};
}