anchor.diff: -{ stdenv, fetchFromGitHub, fetchpatch, pkgconfig, cmake, libzip, epoxy, ffmpeg
  -, imagemagick, SDL2, qtbase, qtmultimedia, qttools, libedit, minizip }:
  +{ stdenv, fetchFromGitHub, fetchpatch, makeDesktopItem, makeWrapper, pkgconfig
  +, cmake, epoxy, libzip, ffmpeg, imagemagick, SDL2, qtbase, qtmultimedia, libedit
  +, qttools, minizip }:
   
  -stdenv.mkDerivation rec {
  +let
  +  desktopItem = makeDesktopItem {
  +    name = "mgba";
  +    exec = "mgba-qt";
  +    icon = "mgba";
  +    comment = "A Game Boy Advance Emulator";
  +    desktopName = "mgba";
  +    genericName = "Game Boy Advance Emulator";
  +    categories = "Game;Emulator;";
  +    startupNotify = "false";
  +  };
  +in stdenv.mkDerivation rec {
     name = "mgba-${version}";
     version = "0.6.3";
   
  
positive.code:   };
  
    enableParallelBuilding = true;
    nativeBuildInputs = [ pkgconfig cmake ];
  
    buildInputs = [
      libzip epoxy ffmpeg imagemagick SDL2 qtbase qtmultimedia libedit minizip
  
negative.code:       url = "https://github.com/mgba-emu/mgba/commit/7f41dd354176b720c8e3310553c6b772278b9dca.patch";
        sha256 = "0j334v8wf594kg8s1hngmh58wv1pi003z8avy6fjhj5qpjmbbavh";
    })];
  
    postInstall = ''
      cp -r ${desktopItem}/share/applications $out/share
      wrapProgram $out/bin/mgba-qt --suffix QT_PLUGIN_PATH : \
        ${qtbase.bin}/${qtbase.qtPluginPrefix}
    '';
  
    meta = with stdenv.lib; {
      homepage = https://mgba.io;
  