anchor.diff:      homepage = "http://www.ppsspp.org/";
       description = "A PSP emulator, the Qt4 version";
       license = licenses.gpl2Plus;
  -    maintainers = [ maintainers.fuuzetsu maintainers.AndersonTorres ];
  +    maintainers = with maintainers; [ fuuzetsu AndersonTorres ];
       platforms = platforms.linux ++ platforms.darwin ++ platforms.cygwin;
     };
   }
  
positive.code: assert withGamepads -> (SDL != null);
  
  let
    version = "1.1.0";
    fstat = x: fn: "-D" + fn + "=" + (if x then "ON" else "OFF");
  in
  with stdenv.lib;
  
negative.code: 
    src = fetchgit {
      url = "https://github.com/hrydgard/ppsspp.git";
      rev = "refs/tags/v${version}";
      fetchSubmodules = true;
      sha256 = "0l8vgdlw657r8gv7rz8iqa6zd9zrbzw10pwhcnahzil7w9qrd03g";
    };
  
    buildInputs = [ zlib libpng qt4 ]
                  ++ (if withGamepads then [ SDL ] else [ ]);
  
    nativeBuildInputs = [ pkgconfig qmake4Hook ];
  
    qmakeFlags = [ "PPSSPPQt.pro" ];
  
  