@@ -1,6 +1,6 @@
11{ lib, buildPythonApplication, fetchFromGitHub, wrapGAppsHook
22, gtk3, gobjectIntrospection, libappindicator-gtk3, librsvg
3−, evdev, pygobject3, pylibacl, pytest
3+, evdev, pygobject3, pylibacl, pytest, bluez
44, linuxHeaders
55, libX11, libXext, libXfixes, libusb1, libudev
66}:
@@ -24,14 +24,17 @@ buildPythonApplication rec {
2424
2525 checkInputs = [ pytest ];
2626
27− patches = [ ./fix-udev.patch ];
27+ patches = [
28+ ./fix-udev.patch # fix upstream issue #401, remove with the next update
29+ ];
2830
2931 postPatch = ''
3032 substituteInPlace scc/paths.py --replace sys.prefix "'$out'"
3133 substituteInPlace scc/uinput.py --replace /usr/include ${linuxHeaders}/include
34+ substituteInPlace scc/device_monitor.py --replace "find_library('bluetooth')" "'libbluetooth.so.3'"
3235 '';
3336
34− LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 libudev ];
37+ LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 libudev bluez ];
3538
3639 preFixup = ''
3740 gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH")