anchor.diff:    nativeBuildInputs = [ cmake pkgconfig ];
   
     buildInputs = [ curl ffmpeg libao libGLU_combined gtk2 glib pcre
  -                  gettext libpthreadstubs libXrandr libXext libSM readline openal
  +                  gettext libpthreadstubs libXrandr libXext libXxf86vm libXinerama libSM readline openal
                     libXdmcp portaudio libusb libpulseaudio libpng hidapi
                   ] ++ stdenv.lib.optionals stdenv.isDarwin [ wxGTK CoreBluetooth cf-private ForceFeedback IOKit OpenGL ]
                     ++ stdenv.lib.optionals stdenv.isLinux  [ bluez libevdev  ]
  
positive.code: { stdenv, fetchFromGitHub, pkgconfig, cmake, bluez, ffmpeg, libao, libGLU_combined, gtk2, glib
  , pcre, gettext, libpthreadstubs, libXrandr, libXext, libSM, readline
  , openal, libXdmcp, portaudio, libusb, libevdev
  , libpulseaudio ? null
  , curl
  
negative.code: assert !(dolphin-wxgui && dolphin-qtgui);
  
  stdenv.mkDerivation rec {
    name = "dolphin-emu-20180430";
    src = fetchFromGitHub {
      owner = "dolphin-emu";
      repo = "dolphin";
      rev = "ad098283c023b0f5f0d314c646bc5d5756c35e3d";
      sha256 = "17fv3vz0nc5jax1bbl4wny1kzsshbbhms82dxd8rzcwwvd2ad1g7";
    };
  
    cmakeFlags = [
  