Skip to content

Instantly share code, notes, and snippets.

@dweipert-3138720606
Last active June 12, 2026 14:55
Show Gist options
  • Select an option

  • Save dweipert-3138720606/6d438ac970d1255023c32c9e50671265 to your computer and use it in GitHub Desktop.

Select an option

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)
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