mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 08:24:10 +01:00
22 lines
854 B
Diff
22 lines
854 B
Diff
diff --git a/libevdev/_clib.py b/libevdev/_clib.py
|
|
index c99fe4a..cdf94ad 100644
|
|
--- a/libevdev/_clib.py
|
|
+++ b/libevdev/_clib.py
|
|
@@ -133,7 +133,7 @@ class Libevdev(_LibraryWrapper):
|
|
|
|
@staticmethod
|
|
def _cdll() -> ctypes.CDLL:
|
|
- return ctypes.CDLL("libevdev.so.2", use_errno=True)
|
|
+ return ctypes.CDLL("@libevdev@/lib/libevdev.so.2", use_errno=True)
|
|
|
|
_api_prototypes = {
|
|
# const char *libevdev_event_type_get_name(unsigned int type);
|
|
@@ -950,7 +950,7 @@ class UinputDevice(_LibraryWrapper):
|
|
|
|
@staticmethod
|
|
def _cdll() -> ctypes.CDLL:
|
|
- return ctypes.CDLL("libevdev.so.2", use_errno=True)
|
|
+ return ctypes.CDLL("@libevdev@/lib/libevdev.so.2", use_errno=True)
|
|
|
|
_api_prototypes = {
|
|
# int libevdev_uinput_create_from_device(const struct libevdev *, int, struct libevdev_uinput **)
|