anchor.diff:    postInstall = ''
       cp -r ${desktopItem}/share/applications $out/share
     '' + stdenv.lib.optionalString stdenv.isLinux ''
  -    wrapProgram $out/bin/dolphin-emu-nogui --prefix LD_LIBRARY_PATH : \
  -      ${vulkan-loader}/lib
  -    wrapProgram $out/bin/dolphin-emu-wx --prefix LD_LIBRARY_PATH : \
  -      ${vulkan-loader}/lib
  +    wrapProgram $out/bin/dolphin-emu-nogui \
  +      --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
  +    wrapProgram $out/bin/dolphin-emu-wx \
  +      --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
     '' + stdenv.lib.optionalString (dolphin-qtgui && stdenv.isLinux) ''
  -    wrapProgram $out/bin/dolphin-emu --prefix LD_LIBRARY_PATH : \
  -      ${vulkan-loader}/lib
  +    wrapProgram $out/bin/dolphin-emu \
  +      --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
       ln -sf $out/bin/dolphin-emu $out/bin/dolphin-emu-qt
     '';
   
  
positive.code:     startupNotify = "false";
    };
  in stdenv.mkDerivation rec {
    name = "dolphin-emu-20180618";
    src = fetchFromGitHub {
      owner = "dolphin-emu";
      repo = "dolphin";
      rev = "091efcc41d59dbe0e478ea96f891c1b47b99ddde";
      sha256 = "1djsd41kdaphyyd3jyk669hjl39mskm186v86nijwg4a0c70kb2r";
    };
  
    enableParallelBuilding = true;
  
negative.code: 
  # options
  , dolphin-wxgui ? true
  , dolphin-qtgui ? false }:
  
  # XOR: ensure only wx XOR qt are enabled
  assert dolphin-wxgui || dolphin-qtgui;
  assert !(dolphin-wxgui && dolphin-qtgui);
  