@@ -1,19 +1,19 @@
11{ lib, buildPythonApplication, fetchFromGitHub, wrapGAppsHook
22, gtk3, gobjectIntrospection, libappindicator-gtk3, librsvg
3−, evdev, pygobject3, pylibacl, pytest
3+, evdev, pygobject3, pylibacl, pytest, bluez
44, linuxHeaders
5−, libX11, libXext, libXfixes, libusb1
5+, libX11, libXext, libXfixes, libusb1, libudev
66}:
77
88buildPythonApplication rec {
99 pname = "sc-controller";
10− version = "0.4.3";
10+ version = "0.4.4";
1111
1212 src = fetchFromGitHub {
1313 owner = "kozec";
1414 repo = pname;
1515 rev = "v${version}";
16− sha256 = "0w4ykl78vdppqr3d4d0h1f31wly6kis57a1gxhnrbpfrgpj0qhvj";
16+ sha256 = "0ki9x28i5slpnygkpdglcvj8cssvvjyz732y1cnpzw1f0sj0kris";
1717 };
1818
1919 nativeBuildInputs = [ wrapGAppsHook ];
@@ -24,12 +24,17 @@ buildPythonApplication rec {
2424
2525 checkInputs = [ pytest ];
2626
27+ patches = [
28+ ./fix-udev.patch # fix upstream issue #401, remove with the next update
29+ ];
30+
2731 postPatch = ''
2832 substituteInPlace scc/paths.py --replace sys.prefix "'$out'"
2933 substituteInPlace scc/uinput.py --replace /usr/include ${linuxHeaders}/include
34+ substituteInPlace scc/device_monitor.py --replace "find_library('bluetooth')" "'libbluetooth.so.3'"
3035 '';
3136
32− LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 ];
37+ LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 libudev bluez ];
3338
3439 preFixup = ''
3540 gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH")