1 { lib, buildFHSEnv, arduino-core-unwrapped, withGui ? false, withTeensyduino ? false }:
3 arduino-unwrapped = arduino-core-unwrapped.override { inherit withGui withTeensyduino; };
13 (python3.withPackages (p: with p; [
19 extraInstallCommands = ''
20 ${lib.optionalString withGui ''
22 mkdir -p $out/share/applications
23 cp ${arduino-core-unwrapped.src}/build/linux/dist/desktop.template $out/share/applications/arduino.desktop
24 substituteInPlace $out/share/applications/arduino.desktop \
25 --replace '<BINARY_LOCATION>' "$out/bin/arduino" \
26 --replace '<ICON_NAME>' "$out/share/arduino/icons/128x128/apps/arduino.png"
28 mkdir -p $out/share/arduino
29 cp -r ${arduino-core-unwrapped.src}/build/shared/icons $out/share/arduino
33 runScript = "arduino";
35 meta = arduino-core-unwrapped.meta;