Here is how to run platformio and build an esp32 firmware
- create a nix shell
shell.nix
{ pkgs ? import <nixpkgs> {} }:
let
in
pkgs.mkShell {
buildInputs = [
pkgs.platformio
pkgs.avrdude
];
}
- open the shell
nix-shell
- Open vscode inside the shell
code .
- tell vscode to not use the built-in platformio in settings.json
"platformio-ide.useBuiltinPIOCore": false,
and thats it !
at least thats what worked for me after scratching my head for 3hours on this …
i hope it will help someone else <3