Skip to content

Commit

Permalink
fix: add wayland, x11 libraries in runtime
Browse files Browse the repository at this point in the history
fixes 'libwayland-egl.so could not be loaded' and 'Initializing X11 Backend failed' on NixOS.
  • Loading branch information
dvtfl committed Sep 4, 2024
1 parent 9f0350f commit 54a58b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@

runtimeDependencies = with pkgs; [
libglvnd # For libEGL
wayland # winit->wayland-sys wants to dlopen libwayland-egl.so
# for running in X11
xorg.libX11
xorg.libXcursor
xorg.libxcb
xorg.libXi
libxkbcommon
# for vulkan backend
vulkan-loader
];
};

Expand Down

0 comments on commit 54a58b5

Please sign in to comment.