Skip to content

fix(flake.nix): graphics libs - #51

Merged
objz merged 1 commit into
objz:masterfrom
GitanElyon:fix/nix-graphics-libs
Oct 8, 2026
Merged

objz merged 1 commit into
objz:masterfrom
GitanElyon:fix/nix-graphics-libs

Conversation

@GitanElyon

Copy link
Copy Markdown
Contributor

The Nix wrapper only exposed the X11 libs. Modern Minecraft (LWJGL 3.4.3 + SDL3) also needs the OpenGL/Vulkan/input/audio stack, so launches crashed with exit 253 (no OpenGL context management API available).

  • expand runtimeLibs with libXi, libXinerama, libGL, vulkan-loader, libxkbcommon, udev, alsa-lib, libpulseaudio, and append /run/opengl-driver/lib (Mesa drivers)
  • add devShells.default exporting the same LD_LIBRARY_PATH, since cargo run --release bypasses the wrapper

Verified: nix build .# plus launching 26.3 through the wrapped binary and via nix develop + cargo run --release with OpenGL 4.6 on Wayland, sound started, no crash.

expanded runtimeLibs in flake.nix with libXi, libXinerama, libGL (libglvnd), vulkan-loader, libxkbcommon, udev, alsa-lib, libpulseaudio, and appended /run/opengl-driver/lib for the Mesa drivers
@objz

objz commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Hey, already mergeable?

@GitanElyon

GitanElyon commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Yes, this is a quick fix I'm making to the flake, I just forgot some deps when making the first PR, should be good to go.

@objz
objz merged commit 8de8654 into objz:master Oct 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants