Skip to content

Commit

Permalink
python.pkgs.pyglet: Fix missing libraries
Browse files Browse the repository at this point in the history
Add the paths for Xext, fontconfig and freetype to the hardcoded library
paths in load_library.
  • Loading branch information
talanis85 authored and FRidh committed Nov 5, 2019
1 parent 7354d72 commit fa2909b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/python-modules/pyglet/default.nix
Expand Up @@ -8,6 +8,8 @@
, glibc
, gtk2-x11
, gdk-pixbuf
, fontconfig
, freetype
}:

buildPythonPackage rec {
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit fa2909b

Please sign in to comment.