Merge pull request #188197 from sersorrel/screeninfo-libs
This commit is contained in:
commit
a664533134
|
@ -25,11 +25,14 @@ buildPythonApplication rec {
|
|||
dataclasses
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libX11
|
||||
libXinerama
|
||||
libXrandr
|
||||
];
|
||||
postPatch = ''
|
||||
substituteInPlace screeninfo/enumerators/xinerama.py \
|
||||
--replace 'load_library("X11")' 'ctypes.cdll.LoadLibrary("${libX11}/lib/libX11.so")' \
|
||||
--replace 'load_library("Xinerama")' 'ctypes.cdll.LoadLibrary("${libXinerama}/lib/libXinerama.so")'
|
||||
substituteInPlace screeninfo/enumerators/xrandr.py \
|
||||
--replace 'load_library("X11")' 'ctypes.cdll.LoadLibrary("${libX11}/lib/libX11.so")' \
|
||||
--replace 'load_library("Xrandr")' 'ctypes.cdll.LoadLibrary("${libXrandr}/lib/libXrandr.so")'
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
|
|
Loading…
Reference in a new issue