platformio and vscode mods (using AI)

This commit is contained in:
Olaf Kolkman
2026-09-13 14:19:11 +02:00
parent 56b4fd88c0
commit cac3b86098
2 changed files with 17 additions and 4 deletions
+2 -1
View File
@@ -4,4 +4,5 @@ result
dump.txt dump.txt
flake.lock flake.lock
*~ *~
Platformio - NixOS Wiki*
.platformio/
+15 -3
View File
@@ -101,15 +101,27 @@
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
bashInteractive bashInteractive
git git
pkgs.nixd
];
packages = with pkgs; [
platformio-core
(writeShellScriptBin "python" ''
if [ "$1" = "-m" ] && [ "$2" = "platformio" ]; then
shift 2
exec ${platformio-core}/bin/platformio "$@"
fi
exec ${python3}/bin/python3 "$@"
'')
openocd
avrdude
]; ];
shellHook = '' shellHook = ''
export EDITOR=vim export EDITOR=vim
export PLATFORMIO_CORE_DIR="$PWD/.platformio"
''; '';
buildInputs = with pkgs; [
rnix-lsp
];
}; };
}; };