sc-controller: fix udev for NixOS

This commit is contained in:
rnhmjoj
2018-08-21 10:56:52 +02:00
parent 81b681c0f5
commit 5914624410
2 changed files with 26 additions and 2 deletions
+4 -2
View File
@@ -2,7 +2,7 @@
, gtk3, gobjectIntrospection, libappindicator-gtk3, librsvg
, evdev, pygobject3, pylibacl, pytest
, linuxHeaders
, libX11, libXext, libXfixes, libusb1
, libX11, libXext, libXfixes, libusb1, libudev
}:
buildPythonApplication rec {
@@ -24,12 +24,14 @@ buildPythonApplication rec {
checkInputs = [ pytest ];
patches = [ ./fix-udev.patch ];
postPatch = ''
substituteInPlace scc/paths.py --replace sys.prefix "'$out'"
substituteInPlace scc/uinput.py --replace /usr/include ${linuxHeaders}/include
'';
LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 ];
LD_LIBRARY_PATH = lib.makeLibraryPath [ libX11 libXext libXfixes libusb1 libudev ];
preFixup = ''
gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH")