diff --git a/pkgs/games/mindustry/default.nix b/pkgs/games/mindustry/default.nix index 12125d761098..d4c67fbd7c62 100644 --- a/pkgs/games/mindustry/default.nix +++ b/pkgs/games/mindustry/default.nix @@ -7,6 +7,7 @@ , fetchFromGitHub , gradle , jdk17 +, zenity # for arc , SDL2 @@ -189,6 +190,7 @@ stdenv.mkDerivation { mkdir -p $out/bin makeWrapper ${jdk}/bin/java $out/bin/mindustry \ --add-flags "-jar $out/share/mindustry.jar" \ + ${lib.optionalString stdenv.isLinux "--suffix PATH : ${lib.makeBinPath [zenity]}"} \ --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [libpulseaudio alsa-lib libjack2]} \ --set ALSA_PLUGIN_DIR ${alsa-plugins}/lib/alsa-lib/'' + optionalString enableWayland '' \ --set SDL_VIDEODRIVER wayland \