working example with fixed flake
This commit is contained in:
28
flake.nix
28
flake.nix
@@ -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"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user