anchor.diff: -{ stdenv, fetchFromGitHub, pkgconfig, cmake, makeWrapper, bluez, ffmpeg, libao
  -, libGLU_combined, gtk2, glib, pcre, gettext, libpthreadstubs, libXrandr, libusb
  -, libXext, libXxf86vm, libXinerama, libSM, readline, openal, libXdmcp, libevdev
  -, portaudio, curl, qt5, vulkan-loader ? null, libpulseaudio ? null
  +{ stdenv, fetchFromGitHub, makeWrapper, makeDesktopItem, pkgconfig, cmake, qt5
  +, bluez, ffmpeg, libao, libGLU_combined, gtk2, glib, pcre, gettext, libXrandr
  +, libpthreadstubs, libusb, libXext, libXxf86vm, libXinerama, libSM, libXdmcp
  +, readline, openal, libevdev, portaudio, curl
  +, vulkan-loader ? null
  +, libpulseaudio ? null
   
   # - Inputs used for Darwin
   , CoreBluetooth, cf-private, ForceFeedback, IOKit, OpenGL, wxGTK, libpng, hidapi
  
positive.code: assert dolphin-wxgui || dolphin-qtgui;
  assert !(dolphin-wxgui && dolphin-qtgui);
  
  stdenv.mkDerivation rec {
    name = "dolphin-emu-20180618";
    src = fetchFromGitHub {
      owner = "dolphin-emu";
  
negative.code:     mkdir -p "$out/Applications"
    '';
  
    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
    '' + stdenv.lib.optionalString (dolphin-qtgui && stdenv.isLinux) ''
      wrapProgram $out/bin/dolphin-emu --prefix LD_LIBRARY_PATH : \
        ${vulkan-loader}/lib
      ln -sf $out/bin/dolphin-emu $out/bin/dolphin-emu-qt
    '';
  
    meta = with stdenv.lib; {
  