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

38 lines
1.1 KiB
Nix
Raw Normal View History

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