From 8670ee4689285dde42b0c84d94f91603ff65f8b6 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 27 Aug 2018 02:14:26 +0200 Subject: [PATCH] sc-controller: fix missing libbluetooth.so --- pkgs/misc/drivers/sc-controller/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/drivers/sc-controller/default.nix b/pkgs/misc/drivers/sc-controller/default.nix index a13b49bd6cf2..f1c4ff091573 100644 --- a/pkgs/misc/drivers/sc-controller/default.nix +++ b/pkgs/misc/drivers/sc-controller/default.nix @@ -1,6 +1,6 @@ { lib, buildPythonApplication, fetchFromGitHub, wrapGAppsHook , gtk3, gobjectIntrospection, libappindicator-gtk3, librsvg -, evdev, pygobject3, pylibacl, pytest +, evdev, pygobject3, pylibacl, pytest, bluez , linuxHeaders , libX11, libXext, libXfixes, libusb1, libudev }: @@ -24,14 +24,17 @@ buildPythonApplication rec { checkInputs = [ pytest ]; - patches = [ ./fix-udev.patch ]; + patches = [ + ./fix-udev.patch # fix upstream issue #401, remove with the next update + ]; postPatch = '' substituteInPlace scc/paths.py --replace sys.prefix "'$out'" substituteInPlace scc/uinput.py --replace /usr/include ${linuxHeaders}/include + substituteInPlace scc/device_monitor.py --replace "find_library('bluetooth')" "'libbluetooth.so.3'" ''; - LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 libudev ]; + LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 libudev bluez ]; preFixup = '' gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH")