stm32cubemx: fix broken package updates (#394337)

This commit is contained in:
Peder Bergebakken Sundt
2025-04-22 16:38:48 +02:00
committed by GitHub
+5
View File
@@ -52,6 +52,11 @@ let
cat << EOF > $out/bin/${pname}
#!${stdenvNoCC.shell}
updater_xml="\$HOME/.stm32cubemx/thirdparties/db/updaterThirdParties.xml"
if [ -e "\$updater_xml" ] && [ ! -w "\$updater_xml" ]; then
echo "Warning: Unwritable \$updater_xml prevents CubeMX software packages from working correctly. Fixing that."
(set -x; chmod u+w "\$updater_xml")
fi
${jdk21}/bin/java -jar $out/opt/STM32CubeMX/STM32CubeMX "\$@"
EOF
chmod +x $out/bin/${pname}