aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/libevdev/fix-paths.patch
blob: e73c360b1460e7a289fc1663d79bdeb248e74785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/libevdev/_clib.py b/libevdev/_clib.py
index 6e4ab2c..9db54d1 100644
--- a/libevdev/_clib.py
+++ b/libevdev/_clib.py
@@ -120,7 +120,7 @@ class Libevdev(_LibraryWrapper):
 
     @staticmethod
     def _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);
@@ -910,7 +910,7 @@ class UinputDevice(_LibraryWrapper):
 
     @staticmethod
     def _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 **)