mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
python.pkgs.pyglet: Fix missing libraries
Add the paths for Xext, fontconfig and freetype to the hardcoded library paths in load_library.
This commit is contained in:
parent
7354d72c19
commit
fa2909bf51
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,8 @@
|
|||
, glibc
|
||||
, gtk2-x11
|
||||
, gdk-pixbuf
|
||||
, fontconfig
|
||||
, freetype
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -45,6 +47,10 @@ buildPythonPackage rec {
|
|||
path = '${gdk-pixbuf}/lib/libgdk_pixbuf-2.0${ext}'
|
||||
elif name == 'Xext':
|
||||
path = '${xorg.libXext}/lib/libXext${ext}'
|
||||
elif name == 'fontconfig':
|
||||
path = '${fontconfig.lib}/lib/libfontconfig${ext}'
|
||||
elif name == 'freetype':
|
||||
path = '${freetype}/lib/libfreetype${ext}'
|
||||
if path is not None:
|
||||
return ctypes.cdll.LoadLibrary(path)
|
||||
raise Exception("Could not load library {}".format(names))
|
||||
|
|
Loading…
Reference in a new issue