@ -47,7 +47,7 @@ let
;
# abiVersion 6 is default, but we need 5 for `avrdude_bin` executable
ncurses5 = ncurses . override { abiVersion = " 5 " ; } ;
teensy_libpath = stdenv . lib . makeLibraryPath [
teensy_libpath = lib . makeLibraryPath [
atk
cairo
expat
@ -76,7 +76,7 @@ let
else throw " ${ stdenv . hostPlatform . system } i s n o t s u p p o r t e d i n t e e n s y " ;
flavor = ( if withTeensyduino then " t e e n s y d u i n o " else " a r d u i n o " )
+ stdenv . lib . optionalString ( ! withGui ) " - c o r e " ;
+ lib . optionalString ( ! withGui ) " - c o r e " ;
in
stdenv . mkDerivation rec {
version = " 1 . 8 . 1 3 " ;
@ -125,7 +125,7 @@ stdenv.mkDerivation rec {
zlib
ncurses5
readline
] ++ stdenv . lib . optionals withTeensyduino [ upx ] ;
] ++ lib . optionals withTeensyduino [ upx ] ;
downloadSrcList = builtins . attrValues externalDownloads ;
downloadDstList = builtins . attrNames externalDownloads ;
@ -165,7 +165,7 @@ stdenv.mkDerivation rec {
cp - r ./build/linux/work /* " $ o u t / s h a r e / a r d u i n o / "
echo - n $ { version } > $ out/share/arduino/lib/version.txt
$ { stdenv . lib . optionalString withGui ''
$ { lib . optionalString withGui ''
mkdir - p $ out/bin
substituteInPlace $ out/share/arduino/arduino \
- - replace " J A V A = j a v a " " J A V A = $ j a v a P a t h / j a v a " \
@ -180,7 +180,7 @@ stdenv.mkDerivation rec {
- - replace ' <ICON_NAME> ' " $ o u t / s h a r e / a r d u i n o / i c o n s / 1 2 8 x 1 2 8 / a p p s / a r d u i n o . p n g "
'' }
$ { stdenv . lib . optionalString withTeensyduino ''
$ { lib . optionalString withTeensyduino ''
# Back up the original jars
mv $ out/share/arduino/lib/arduino-core.jar $ out/share/arduino/lib/arduino-core.jar.bak
mv $ out/share/arduino/lib/pde.jar $ out/share/arduino/lib/pde.jar.bak
@ -235,7 +235,7 @@ stdenv.mkDerivation rec {
mkdir $ out/lib /
ln - s $ { lib . makeLibraryPath [ ncurses5 ] } /libtinfo.so.5 $ out/lib/libtinfo.so.5
$ { stdenv . lib . optionalString withTeensyduino ''
$ { lib . optionalString withTeensyduino ''
# Patch the Teensy loader binary
patchelf - - debug \
- - set-interpreter $ ( cat $ NIX_CC/nix-support/dynamic-linker ) \