git.iko.soy/typeable/nixpkgs
on master help sign in
multimc: create compatibility symlink to fix desktop icon
commitbe47f95083dcb46376041109235840bd584715dd authorKevin Liu <kevin@potatofrom.space> dateSat 23 Jun 2018, 09:35 (8 years ago) parent28ff1f7
1 file changed+6
pkgs/games/multimc/default.nix+6
pkgs/games/multimc/default.nix+6
@@ -24,6 +24,12 @@ in stdenv.mkDerivation rec {
2424 cp ../application/resources/multimc/scalable/multimc.svg $out/share/pixmaps
2525 cp ../application/package/linux/multimc.desktop $out/share/applications
2626 wrapProgram $out/bin/MultiMC --add-flags "-d \$HOME/.multimc/" --set GAME_LIBRARY_PATH /run/opengl-driver/lib:${libpath} --prefix PATH : ${jdk}/bin/
27+
28+ # As of https://github.com/MultiMC/MultiMC5/blob/7ea1d68244fdae1e7672fb84199ee71e168b31ca/application/package/linux/multimc.desktop,
29+ # the desktop icon refers to `multimc`, but the executable actually gets
30+ # installed as `MultiMC`. Create compatibility symlink to fix the desktop
31+ # icon.
32+ ln -sf $out/bin/MultiMC $out/bin/multimc
2733 '';
2834
2935 meta = with stdenv.lib; {