python3Packages.pyglet: add load_library case for harfbuzz library

Starting from pyglet 2.1.4, pyglet can now interface with the harfbuzz
library. Add case in load_library to find the correct library.
This commit is contained in:
Benson Chu
2025-06-16 10:56:07 -05:00
parent 21f1277f3d
commit a74f39da1e
@@ -17,6 +17,7 @@
ffmpeg-full,
openal,
libpulseaudio,
harfbuzz,
mesa,
}:
@@ -78,6 +79,8 @@ buildPythonPackage rec {
path = '${xorg.libXinerama}/lib/libXinerama${ext}'
elif name == 'Xxf86vm':
path = '${xorg.libXxf86vm}/lib/libXxf86vm${ext}'
elif name == 'harfbuzz':
path = '${harfbuzz}/lib/libharfbuzz${ext}'
if path is not None:
return ctypes.cdll.LoadLibrary(path)
raise Exception("Could not load library {}".format(names))