python3.pkgs.libevdev: hardcode path
This commit is contained in:
parent
c71518e75b
commit
10e5b931eb
@ -1,4 +1,10 @@
|
|||||||
{ stdenv, buildPythonPackage, isPy27, fetchPypi }:
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, isPy27
|
||||||
|
, fetchPypi
|
||||||
|
, substituteAll
|
||||||
|
, pkgs
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "libevdev";
|
pname = "libevdev";
|
||||||
@ -10,6 +16,13 @@ buildPythonPackage rec {
|
|||||||
sha256 = "17agnigmzscmdjqmrylg1lza03hwjhgxbpf4l705s6i7p7ndaqrs";
|
sha256 = "17agnigmzscmdjqmrylg1lza03hwjhgxbpf4l705s6i7p7ndaqrs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./fix-paths.patch;
|
||||||
|
libevdev = stdenv.lib.getLib pkgs.libevdev;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
22
pkgs/development/python-modules/libevdev/fix-paths.patch
Normal file
22
pkgs/development/python-modules/libevdev/fix-paths.patch
Normal file
@ -0,0 +1,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 **)
|
Loading…
x
Reference in New Issue
Block a user