forge-mtg: fix audio support in forge-adventure mode

The forge-adventure executable uses LWJGL3 backend which requires native
audio libraries for sound playback.

This change adds alsa-lib to the library path for forge-adventure,
enabling proper audio functionality.
This commit is contained in:
Dyego Aurélio
2025-10-26 15:10:21 -03:00
parent 17536557a9
commit ae9ac990c7

View File

@@ -7,6 +7,7 @@
makeWrapper, makeWrapper,
openjdk, openjdk,
libGL, libGL,
alsa-lib,
makeDesktopItem, makeDesktopItem,
copyDesktopItems, copyDesktopItems,
imagemagick, imagemagick,
@@ -106,7 +107,12 @@ maven.buildMavenPackage {
chmod 555 $out/share/forge/$commandToInstall.sh chmod 555 $out/share/forge/$commandToInstall.sh
PREFIX_CMD="" PREFIX_CMD=""
if [ "$commandToInstall" = "forge-adventure" ]; then if [ "$commandToInstall" = "forge-adventure" ]; then
PREFIX_CMD="--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL ]}" PREFIX_CMD="--prefix LD_LIBRARY_PATH : ${
lib.makeLibraryPath [
libGL
alsa-lib
]
}"
fi fi
makeWrapper $out/share/forge/$commandToInstall.sh $out/bin/$commandToInstall \ makeWrapper $out/share/forge/$commandToInstall.sh $out/bin/$commandToInstall \