anchor.diff:      "-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
       "-DGTK2_INCLUDE_DIRS=${gtk2.dev}/include/gtk-2.0"
       "-DENABLE_LTO=True"
  -  ] ++ stdenv.lib.optionals stdenv.isDarwin [ "-DOSX_USE_DEFAULT_SEARCH_PATH=True" ];
  +  ] ++ stdenv.lib.optionals (!dolphin-qtgui)  [ "-DENABLE_QT2=False" ]
  +    ++ stdenv.lib.optionals stdenv.isDarwin [ "-DOSX_USE_DEFAULT_SEARCH_PATH=True" ];
   
     enableParallelBuilding = true;
   
  
positive.code: , openal, libXdmcp, portaudio, libusb, libevdev
  , libpulseaudio ? null
  , curl
  # - Inputs used for Darwin
  , CoreBluetooth, cf-private, ForceFeedback, IOKit, OpenGL
  , wxGTK
  , libpng
  , hidapi
  }:
  
  stdenv.mkDerivation rec {
    name = "dolphin-emu-20170902";
  
negative.code:                   gettext libpthreadstubs libXrandr libXext 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  ]
                    ++ stdenv.lib.optionals dolphin-qtgui [ qt5.qtbase ];
  
    # - Change install path to Applications relative to $out
    # - Allow Dolphin to use nix-provided libraries instead of building them
  