multimc: create compatibility symlink to fix desktop icon

This commit is contained in:
Kevin Liu 2018-06-23 09:35:59 -04:00
parent 28ff1f7565
commit be47f95083
No known key found for this signature in database
GPG Key ID: 5A824102DFE3DD86

View File

@ -24,6 +24,12 @@ in stdenv.mkDerivation rec {
cp ../application/resources/multimc/scalable/multimc.svg $out/share/pixmaps
cp ../application/package/linux/multimc.desktop $out/share/applications
wrapProgram $out/bin/MultiMC --add-flags "-d \$HOME/.multimc/" --set GAME_LIBRARY_PATH /run/opengl-driver/lib:${libpath} --prefix PATH : ${jdk}/bin/
# As of https://github.com/MultiMC/MultiMC5/blob/7ea1d68244fdae1e7672fb84199ee71e168b31ca/application/package/linux/multimc.desktop,
# the desktop icon refers to `multimc`, but the executable actually gets
# installed as `MultiMC`. Create compatibility symlink to fix the desktop
# icon.
ln -sf $out/bin/MultiMC $out/bin/multimc
'';
meta = with stdenv.lib; {