Last active
June 12, 2026 14:55
-
-
Save dweipert-3138720606/6d438ac970d1255023c32c9e50671265 to your computer and use it in GitHub Desktop.
shell.nix for running the Minecraft Fabric Addon template project on sway (with ./gradlew runClient)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with (import <nixpkgs> {}); | |
| mkShell { | |
| buildInputs = [ | |
| zulu21 | |
| gradle | |
| flite | |
| libGL | |
| mesa | |
| xorg.libX11 | |
| xorg.libXext | |
| xorg.libXxf86vm | |
| xorg.libXcursor | |
| xorg.libXrandr | |
| xorg.libXinerama | |
| openal | |
| libpulseaudio | |
| ]; | |
| shellHook = '' | |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${flite.lib}/lib | |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${libGL}/lib:${mesa}/lib | |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${xorg.libX11}/lib:${xorg.libXext}/lib:${xorg.libXxf86vm}/lib:${xorg.libXcursor}/lib:${xorg.libXrandr}/lib:${xorg.libXinerama}/lib | |
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${openal}/lib:${libpulseaudio}/lib | |
| export LIBGL_DRIVERS_PATH=${mesa}/lib/dri | |
| ''; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment