Loading pkgs/by-name/st/stm32cubemx/package.nix +5 −0 Original line number Diff line number Diff line Loading @@ -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} Loading Loading
pkgs/by-name/st/stm32cubemx/package.nix +5 −0 Original line number Diff line number Diff line Loading @@ -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} Loading