mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
mindustry: add zenity to $PATH
Co-authored-by: Francesco Gazzetta <fgaz@fgaz.me>
This commit is contained in:
parent
8961a959e4
commit
cc0bc412a6
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user