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

31 lines
1,003 B
Nix
Raw Normal View History

2014-05-27 03:22:24 +00:00
{ stdenv, fetchgit, zlib, libpng, qt4, pkgconfig
, withGamepads ? true, SDL # SDL is used for gamepad functionality
}:
let
2014-08-24 01:59:14 +00:00
version = "0.9.9.1";
2014-05-27 03:22:24 +00: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-24 01:59:14 +00:00
sha256 = "0fdbda0b4dfbecacd01850f1767e980281fed4cc34a21df26ab3259242d8c352";
rev = "bf709790c4fed9cd211f755acaa650ace0f7555a";
2014-05-27 03:22:24 +00:00
fetchSubmodules = true;
};
buildInputs = [ zlib libpng pkgconfig qt4 ]
++ (if withGamepads then [ SDL ] else [ ]);
configurePhase = "cd Qt && qmake PPSSPPQt.pro";
2014-08-24 01:59:14 +00:00
installPhase = "mkdir -p $out/bin && cp ppsspp $out/bin";
2014-05-27 03:22:24 +00:00
meta = with stdenv.lib; {
homepage = "http://www.ppsspp.org/";
2014-11-11 13:20:43 +00:00
description = "A PSP emulator, the Qt4 version";
2014-05-27 03:22:24 +00:00
license = licenses.gpl2Plus;
maintainers = [ maintainers.fuuzetsu ];
2014-06-07 20:28:56 +00:00
platforms = platforms.linux ++ platforms.darwin ++ platforms.cygwin;
2014-05-27 03:22:24 +00:00
};
}