Fix desktop file

This commit is contained in:
cidkidnix 2022-01-08 01:41:31 -06:00
parent 73c0a0d43b
commit e8f56d399b

View File

@ -2,6 +2,11 @@
let let
libpath = with xorg; lib.makeLibraryPath [ libX11 libXext libXcursor libXrandr libXxf86vm libpulseaudio libGL ]; libpath = with xorg; lib.makeLibraryPath [ libX11 libXext libXcursor libXrandr libXxf86vm libpulseaudio libGL ];
desktopFile = makeDesktopItem {
name = "PolyMC";
desktopName = "PolyMC";
exec = "polymc";
};
in in
mkDerivation rec { mkDerivation rec {
pname = "polymc"; pname = "polymc";
@ -29,6 +34,7 @@ mkDerivation rec {
postInstall = '' postInstall = ''
# xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
cp ${desktopFile} $out/share/applications/
wrapProgram $out/bin/polymc \ wrapProgram $out/bin/polymc \
--set GAME_LIBRARY_PATH /run/opengl-driver/lib:${libpath} \ --set GAME_LIBRARY_PATH /run/opengl-driver/lib:${libpath} \
--prefix PATH : ${lib.makeBinPath [ xorg.xrandr ]} --prefix PATH : ${lib.makeBinPath [ xorg.xrandr ]}