anchor.diff:        $out/opt/minecraft-launcher/liblauncher.so
     '';
   
  +  postFixup = ''
  +    # Do not create `GPUCache` in current directory
  +    makeWrapper $out/opt/minecraft-launcher/minecraft-launcher $out/bin/minecraft-launcher \
  +      --prefix LD_LIBRARY_PATH : ${envLibPath} \
  +      --prefix PATH : ${stdenv.lib.makeBinPath [ jre ]} \
  +      --run "cd /tmp" \
  +      "''${gappsWrapperArgs[@]}"
  +  '';
  +
     meta = with stdenv.lib; {
       description = "Official launcher for Minecraft, a sandbox-building game";
       homepage = "https://minecraft.net";
  
positive.code: 
      ${desktopItem.buildCommand}
      install -D $icon $out/share/icons/hicolor/symbolic/apps/minecraft-launcher.svg
  
      makeWrapper $out/opt/minecraft-launcher/minecraft-launcher $out/bin/minecraft-launcher \
        --prefix LD_LIBRARY_PATH : ${envLibPath} \
        --prefix PATH : ${stdenv.lib.makeBinPath [ jre ]} \
        --run "cd /tmp" # Do not create `GPUCache` in current directory
    '';
  
    preFixup = ''
  
negative.code: , fetchurl
  , makeDesktopItem
  , makeWrapper
  , wrapGAppsHook
  , gobject-introspection
  , jre # old or modded versions of the game may require Java 8 (https://aur.archlinux.org/packages/minecraft-launcher/#pinned-674960)
  , xorg
  , zlib
  