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

38 lines
1.1 KiB
Nix
Raw Normal View History

2016-04-16 23:51:25 +00:00
{ stdenv, fetchgit, zlib, libpng, qt4, qmake4Hook, pkgconfig
2014-05-27 03:22:24 +00:00
, withGamepads ? true, SDL # SDL is used for gamepad functionality
}:
assert withGamepads -> (SDL != null);
2014-05-27 03:22:24 +00:00
let
version = "1.1.0";
2014-05-27 03:22:24 +00:00
fstat = x: fn: "-D" + fn + "=" + (if x then "ON" else "OFF");
in
with stdenv.lib;
stdenv.mkDerivation rec{
2014-05-27 03:22:24 +00:00
name = "PPSSPP-${version}";
src = fetchgit {
url = "https://github.com/hrydgard/ppsspp.git";
rev = "8c8e5de89d52b8bcb968227d96cbf049d04d1241";
2014-05-27 03:22:24 +00:00
fetchSubmodules = true;
sha256 = "1q21qskzni0nvz2yi2m17gjh4i9nrs2l4fm4y2dww9m29xpvzw3x";
2014-05-27 03:22:24 +00:00
};
2016-04-16 23:51:25 +00:00
buildInputs = [ zlib libpng pkgconfig qt4 qmake4Hook ]
2014-05-27 03:22:24 +00:00
++ (if withGamepads then [ SDL ] else [ ]);
qmakeFlags = [ "PPSSPPQt.pro" ];
2016-04-16 23:51:25 +00:00
preConfigure = "cd Qt";
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 = {
2014-05-27 03:22:24 +00:00
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 maintainers.AndersonTorres ];
2014-06-07 20:28:56 +00:00
platforms = platforms.linux ++ platforms.darwin ++ platforms.cygwin;
2014-05-27 03:22:24 +00:00
};
}