tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
sc-controller: fix missing libbluetooth.so
rnhmjoj
7 years ago
8670ee46
59146244
+6
-3
1 changed file
expand all
collapse all
unified
split
pkgs
misc
drivers
sc-controller
default.nix
+6
-3
pkgs/misc/drivers/sc-controller/default.nix
reviewed
···
1
1
{ lib, buildPythonApplication, fetchFromGitHub, wrapGAppsHook
2
2
, gtk3, gobjectIntrospection, libappindicator-gtk3, librsvg
3
3
-
, evdev, pygobject3, pylibacl, pytest
3
3
+
, evdev, pygobject3, pylibacl, pytest, bluez
4
4
, linuxHeaders
5
5
, libX11, libXext, libXfixes, libusb1, libudev
6
6
}:
···
24
24
25
25
checkInputs = [ pytest ];
26
26
27
27
-
patches = [ ./fix-udev.patch ];
27
27
+
patches = [
28
28
+
./fix-udev.patch # fix upstream issue #401, remove with the next update
29
29
+
];
28
30
29
31
postPatch = ''
30
32
substituteInPlace scc/paths.py --replace sys.prefix "'$out'"
31
33
substituteInPlace scc/uinput.py --replace /usr/include ${linuxHeaders}/include
34
34
+
substituteInPlace scc/device_monitor.py --replace "find_library('bluetooth')" "'libbluetooth.so.3'"
32
35
'';
33
36
34
34
-
LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 libudev ];
37
37
+
LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 libudev bluez ];
35
38
36
39
preFixup = ''
37
40
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH")