I’m writing a flake to package wlr-layout-ui
GitHub - fdev31/wlr-layout-ui: A tiny GUI to configure screen layouts on wayland
A tiny GUI to configure screen layouts on wayland
I’ve been successful getting it to build using poetry2nix
, see https://github.com/dantefromhell/wlr-layout-ui/blob/67de8592442b9fe4e27aaf54c42860c1124b345b/flake.nix
When executing though, I get the following error
Traceback (most recent call last):
File "/nix/store/k8b8857dlmlmaci73lmhiga3rw66v762-python3.11-wlr-layout-ui-1.3.6/bin/.wlrlui-wrapped", line 6, in <module>
from wlr_layout_ui import main
File "/nix/store/k8b8857dlmlmaci73lmhiga3rw66v762-python3.11-wlr-layout-ui-1.3.6/lib/python3.11/site-packages/wlr_layout_ui/__init__.py", line 7, in <module>
from .gui import UI
File "/nix/store/k8b8857dlmlmaci73lmhiga3rw66v762-python3.11-wlr-layout-ui-1.3.6/lib/python3.11/site-packages/wlr_layout_ui/gui.py", line 8, in <module>
from .widgets import Button, HBox, VBox, Dropdown, Style, Widget
File "/nix/store/k8b8857dlmlmaci73lmhiga3rw66v762-python3.11-wlr-layout-ui-1.3.6/lib/python3.11/site-packages/wlr_layout_ui/widgets.py", line 3, in <module>
from pyglet.shapes import Rectangle, Triangle
File "/nix/store/kybkfqzmdn1wf65vh7k2ma5j6bsf12yf-python3.11-pyglet-2.0.14/lib/python3.11/site-packages/pyglet/shapes.py", line 54, in <module>
from pyglet.gl import GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_BLEND, GL_TRIANGLES
File "/nix/store/kybkfqzmdn1wf65vh7k2ma5j6bsf12yf-python3.11-pyglet-2.0.14/lib/python3.11/site-packages/pyglet/gl/__init__.py", line 47, in <module>
from pyglet.gl.gl import *
File "/nix/store/kybkfqzmdn1wf65vh7k2ma5j6bsf12yf-python3.11-pyglet-2.0.14/lib/python3.11/site-packages/pyglet/gl/gl.py", line 7, in <module>
from pyglet.gl.lib import link_GL as _link_function
File "/nix/store/kybkfqzmdn1wf65vh7k2ma5j6bsf12yf-python3.11-pyglet-2.0.14/lib/python3.11/site-packages/pyglet/gl/lib.py", line 98, in <module>
from pyglet.gl.lib_glx import link_GL, link_GLX
File "/nix/store/kybkfqzmdn1wf65vh7k2ma5j6bsf12yf-python3.11-pyglet-2.0.14/lib/python3.11/site-packages/pyglet/gl/lib_glx.py", line 11, in <module>
gl_lib = pyglet.lib.load_library('GL')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/kybkfqzmdn1wf65vh7k2ma5j6bsf12yf-python3.11-pyglet-2.0.14/lib/python3.11/site-packages/pyglet/lib.py", line 135, in load_library
raise ImportError(f'Library "{names[0]}" not found.')
ImportError: Library "GL" not found.
I’m not sure which system package provides the missing library to pyglet
and how to add it to the python environment.
Any help is suggested.