mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02: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
|
@ -8,6 +8,8 @@
|
||||||
, glibc
|
, glibc
|
||||||
, gtk2-x11
|
, gtk2-x11
|
||||||
, gdk-pixbuf
|
, gdk-pixbuf
|
||||||
|
, fontconfig
|
||||||
|
, freetype
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -45,6 +47,10 @@ buildPythonPackage rec {
|
||||||
path = '${gdk-pixbuf}/lib/libgdk_pixbuf-2.0${ext}'
|
path = '${gdk-pixbuf}/lib/libgdk_pixbuf-2.0${ext}'
|
||||||
elif name == 'Xext':
|
elif name == 'Xext':
|
||||||
path = '${xorg.libXext}/lib/libXext${ext}'
|
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:
|
if path is not None:
|
||||||
return ctypes.cdll.LoadLibrary(path)
|
return ctypes.cdll.LoadLibrary(path)
|
||||||
raise Exception("Could not load library {}".format(names))
|
raise Exception("Could not load library {}".format(names))
|
||||||
|
|
Loading…
Reference in a new issue