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,
openjdk,
libGL,
alsa-lib,
makeDesktopItem,
copyDesktopItems,
imagemagick,
@@ -106,7 +107,12 @@ maven.buildMavenPackage {
chmod 555 $out/share/forge/$commandToInstall.sh
PREFIX_CMD=""
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
makeWrapper $out/share/forge/$commandToInstall.sh $out/bin/$commandToInstall \