nixpkgs-suyu/pkgs/misc/emulators/ppsspp/default.nix

31 lines
992 B
Nix
Raw Normal View History

2014-05-27 05:22:24 +02:00
{ stdenv, fetchgit, zlib, libpng, qt4, pkgconfig
, withGamepads ? true, SDL # SDL is used for gamepad functionality
}:
let
2014-08-09 02:49:50 +02:00
version = "0.9.9";
2014-05-27 05:22:24 +02:00
fstat = x: fn: "-D" + fn + "=" + (if x then "ON" else "OFF");
in stdenv.mkDerivation {
name = "PPSSPP-${version}";
src = fetchgit {
url = "https://github.com/hrydgard/ppsspp.git";
2014-08-09 02:49:50 +02:00
sha256 = "1m7awac87wrwys22qwbr0589im1ilm0dv30wp945xg30793rivvj";
rev = "b421e29391b34d997b2c99ce2bdc74a0df5bb472";
2014-05-27 05:22:24 +02:00
fetchSubmodules = true;
};
buildInputs = [ zlib libpng pkgconfig qt4 ]
++ (if withGamepads then [ SDL ] else [ ]);
configurePhase = "cd Qt && qmake PPSSPPQt.pro";
installPhase = "mkdir -p $out/bin && cp PPSSPPQt $out/bin";
meta = with stdenv.lib; {
homepage = "http://www.ppsspp.org/";
description = "A PSP emulator, the Qt4 version.";
license = licenses.gpl2Plus;
maintainers = [ maintainers.fuuzetsu ];
2014-06-07 22:28:56 +02:00
platforms = platforms.linux ++ platforms.darwin ++ platforms.cygwin;
2014-05-27 05:22:24 +02:00
};
}