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
1 changed files with 3 additions and 2 deletions

View File

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