anchor.diff:  { stdenv, fetchFromGitHub, pkgconfig, cmake, bluez, ffmpeg, libao, libGLU_combined, gtk2, glib
  -, pcre, gettext, libpthreadstubs, libXrandr, libXext, libSM, readline
  +, pcre, gettext, libpthreadstubs, libXrandr, libXext, libXxf86vm, libXinerama, libSM, readline
   , openal, libXdmcp, portaudio, libusb, libevdev
   , libpulseaudio ? null
   , curl
  
positive.code: assert !(dolphin-wxgui && dolphin-qtgui);
  
  stdenv.mkDerivation rec {
    name = "dolphin-emu-20171218";
    src = fetchFromGitHub {
      owner = "dolphin-emu";
      repo = "dolphin";
      rev = "438e8b64a4b080370c7a65ed23af52838a4e7aaa";
      sha256 = "0rrd0g1vg9jk1p4wdr6w2z34cabb7pgmpwfcl2a372ark3vi4ysc";
    };
  
    cmakeFlags = [
  
negative.code:   nativeBuildInputs = [ cmake pkgconfig ];
  
    buildInputs = [ curl ffmpeg libao libGLU_combined gtk2 glib pcre
                    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  ]
  