mindustry: add zenity to $PATH

Co-authored-by: Francesco Gazzetta <fgaz@fgaz.me>
This commit is contained in:
hand7s 2024-08-07 09:38:03 +03:00 committed by Francesco Gazzetta
parent 8961a959e4
commit cc0bc412a6

View File

@ -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 \