From cc0bc412a64841e045c5837e4bc4d7a7b44f874c Mon Sep 17 00:00:00 2001 From: hand7s <117505144+s0me1newithhand7s@users.noreply.github.com> Date: Wed, 7 Aug 2024 09:38:03 +0300 Subject: [PATCH] mindustry: add zenity to $PATH Co-authored-by: Francesco Gazzetta --- pkgs/games/mindustry/default.nix | 2 ++ 1 file changed, 2 insertions(+) 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 \