mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-18 03:04:32 +03:00
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 New Issue
Block a user