25 lines
533 B
Nix
25 lines
533 B
Nix
|
{
|
||
|
perSystem = { libMy, pkgs, ... }: {
|
||
|
devenv.shells.firmware = libMy.withRootdir {
|
||
|
packages = with pkgs; [
|
||
|
esp-idf-esp32s3
|
||
|
picocom
|
||
|
];
|
||
|
|
||
|
env = {
|
||
|
# PICO_SDK_PATH = "${pkgs.pico-sdk}/lib/pico-sdk";
|
||
|
};
|
||
|
|
||
|
scripts = {
|
||
|
# build.exec = ''
|
||
|
# cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -D PICO_STDIO_SEMIHOSTING=1
|
||
|
# cmake --build build --parallel
|
||
|
# '';
|
||
|
init.exec = ''
|
||
|
idf.py set-target esp32s3
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|