Commit ae9ac990 authored by Dyego Aurélio's avatar Dyego Aurélio
Browse files

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.
parent 17536557
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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 \