diff options
author | Philip Kranz <pk@pmlk.net> | 2019-10-11 09:15:42 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-11-05 13:42:48 +0100 |
commit | fa2909bf51c29d568dd9ce5c27cdbf7393644909 (patch) | |
tree | 55f06f49f902fa40e942da6f823d7388a8a98da5 /pkgs/development | |
parent | 7354d72c19df86ec0a4a11eb0436ba7f78d462aa (diff) |
python.pkgs.pyglet: Fix missing libraries
Add the paths for Xext, fontconfig and freetype to the hardcoded library paths in load_library.
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pyglet/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyglet/default.nix b/pkgs/development/python-modules/pyglet/default.nix index 1e7beddda7fd1..16484cb1211ec 100644 --- a/pkgs/development/python-modules/pyglet/default.nix +++ b/pkgs/development/python-modules/pyglet/default.nix @@ -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)) |