platformio and vscode mods (using AI)
This commit is contained in:
+2
-1
@@ -4,4 +4,5 @@ result
|
||||
dump.txt
|
||||
flake.lock
|
||||
*~
|
||||
|
||||
Platformio - NixOS Wiki*
|
||||
.platformio/
|
||||
|
||||
@@ -101,15 +101,27 @@
|
||||
nativeBuildInputs = with pkgs; [
|
||||
bashInteractive
|
||||
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 = ''
|
||||
export EDITOR=vim
|
||||
export PLATFORMIO_CORE_DIR="$PWD/.platformio"
|
||||
'';
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
rnix-lsp
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user