unciv: drop envLibPath on darwin

This commit is contained in:
Weijia Wang 2024-01-30 06:42:04 +01:00
parent 618a4945cf
commit d14fb68aab

View file

@ -18,11 +18,11 @@ let
categories = [ "Game" ];
};
envLibPath = lib.makeLibraryPath [
envLibPath = lib.makeLibraryPath (lib.optionals stdenv.isLinux [
libGL
libpulseaudio
libXxf86vm
];
]);
in
stdenv.mkDerivation rec {
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
runHook preInstall
makeWrapper ${jre}/bin/java $out/bin/unciv \
--prefix LD_LIBRARY_PATH : ${envLibPath} \
--prefix LD_LIBRARY_PATH : "${envLibPath}" \
--prefix PATH : ${lib.makeBinPath [ jre ]} \
--add-flags "-jar ${src}"