nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/libevdev/_clib.py b/libevdev/_clib.py
2index c99fe4a..cdf94ad 100644
3--- a/libevdev/_clib.py
4+++ b/libevdev/_clib.py
5@@ -133,7 +133,7 @@ class Libevdev(_LibraryWrapper):
6
7 @staticmethod
8 def _cdll() -> ctypes.CDLL:
9- return ctypes.CDLL("libevdev.so.2", use_errno=True)
10+ return ctypes.CDLL("@libevdev@/lib/libevdev.so.2", use_errno=True)
11
12 _api_prototypes = {
13 # const char *libevdev_event_type_get_name(unsigned int type);
14@@ -950,7 +950,7 @@ class UinputDevice(_LibraryWrapper):
15
16 @staticmethod
17 def _cdll() -> ctypes.CDLL:
18- return ctypes.CDLL("libevdev.so.2", use_errno=True)
19+ return ctypes.CDLL("@libevdev@/lib/libevdev.so.2", use_errno=True)
20
21 _api_prototypes = {
22 # int libevdev_uinput_create_from_device(const struct libevdev *, int, struct libevdev_uinput **)