2016-04-17 00:51:25 +01:00
|
|
|
{ stdenv, fetchgit, zlib, libpng, qt4, qmake4Hook, pkgconfig
|
2014-05-27 04:22:24 +01:00
|
|
|
, withGamepads ? true, SDL # SDL is used for gamepad functionality
|
|
|
|
}:
|
|
|
|
|
2015-07-29 13:51:15 +01:00
|
|
|
assert withGamepads -> (SDL != null);
|
|
|
|
|
2014-05-27 04:22:24 +01:00
|
|
|
let
|
2015-07-29 13:51:15 +01:00
|
|
|
version = "1.1.0";
|
2014-05-27 04:22:24 +01:00
|
|
|
fstat = x: fn: "-D" + fn + "=" + (if x then "ON" else "OFF");
|
2015-07-29 13:51:15 +01:00
|
|
|
in
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec{
|
2014-05-27 04:22:24 +01:00
|
|
|
name = "PPSSPP-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/hrydgard/ppsspp.git";
|
2015-07-29 13:51:15 +01:00
|
|
|
rev = "8c8e5de89d52b8bcb968227d96cbf049d04d1241";
|
2014-05-27 04:22:24 +01:00
|
|
|
fetchSubmodules = true;
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1q21qskzni0nvz2yi2m17gjh4i9nrs2l4fm4y2dww9m29xpvzw3x";
|
2014-05-27 04:22:24 +01:00
|
|
|
};
|
|
|
|
|
2016-04-17 00:51:25 +01:00
|
|
|
buildInputs = [ zlib libpng pkgconfig qt4 qmake4Hook ]
|
2014-05-27 04:22:24 +01:00
|
|
|
++ (if withGamepads then [ SDL ] else [ ]);
|
|
|
|
|
2016-07-17 15:42:46 +01:00
|
|
|
qmakeFlags = [ "PPSSPPQt.pro" ];
|
|
|
|
|
2016-04-17 00:51:25 +01:00
|
|
|
preConfigure = "cd Qt";
|
2014-08-24 02:59:14 +01:00
|
|
|
installPhase = "mkdir -p $out/bin && cp ppsspp $out/bin";
|
2014-05-27 04:22:24 +01:00
|
|
|
|
2015-07-29 13:51:15 +01:00
|
|
|
meta = {
|
2014-05-27 04:22:24 +01:00
|
|
|
homepage = "http://www.ppsspp.org/";
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A PSP emulator, the Qt4 version";
|
2014-05-27 04:22:24 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2015-07-29 13:51:15 +01:00
|
|
|
maintainers = [ maintainers.fuuzetsu maintainers.AndersonTorres ];
|
2014-06-07 21:28:56 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin ++ platforms.cygwin;
|
2014-05-27 04:22:24 +01:00
|
|
|
};
|
2015-07-29 13:51:15 +01:00
|
|
|
}
|