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

36 lines
1.0 KiB
Nix
Raw Normal View History

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