teensyduino: fix missing library paths

- The teensy binary requires Gtk2, not Gtk3.
- The teensy_{ports,reboot,restart,serialmon} binaries need libudev.
This commit is contained in:
Daniël de Kok 2021-02-24 09:09:15 +01:00
parent cb72a93d2e
commit fe397414c3

View file

@ -23,6 +23,7 @@
, glib
, pango
, gdk-pixbuf
, gtk2
, libpng12
, expat
, freetype
@ -56,7 +57,7 @@ let
gcc.cc.lib
gdk-pixbuf
glib
gtk3
gtk2
libpng12
libusb-compat-0_1
pango
@ -240,7 +241,7 @@ stdenv.mkDerivation rec {
patchelf --debug \
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
--set-rpath "${teensy_libpath}" \
$out/share/arduino/hardware/tools/teensy
$out/share/arduino/hardware/tools/teensy{,_ports,_reboot,_restart,_serialmon}
''}
'';