arduino-cli: add python3 to its environment (#447649)

This commit is contained in:
Arne Keller
2026-07-02 17:43:23 +00:00
committed by GitHub
+7 -1
View File
@@ -5,8 +5,10 @@
fetchFromGitHub,
buildFHSEnv,
installShellFiles,
makeWrapper,
writableTmpDirAsHomeHook,
go-task,
python3,
}:
let
@@ -24,6 +26,7 @@ let
nativeBuildInputs = [
installShellFiles
makeWrapper
writableTmpDirAsHomeHook
];
@@ -67,7 +70,10 @@ let
]
++ lib.optionals stdenv.hostPlatform.isLinux [ "-extldflags '-static'" ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
postInstall = ''
wrapProgram $out/bin/arduino-cli --prefix PATH : ${lib.makeBinPath [ python3 ]}
''
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd arduino-cli \
--bash <($out/bin/arduino-cli completion bash) \
--zsh <($out/bin/arduino-cli completion zsh) \