nixpkgs/pkgs/misc/emulators/ppsspp/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

40 lines
1.1 KiB
Nix

{ stdenv, fetchgit, zlib, libpng, qt4, qmake4Hook, pkgconfig
, withGamepads ? true, SDL # SDL is used for gamepad functionality
}:
assert withGamepads -> (SDL != null);
let
version = "1.3";
fstat = x: fn: "-D" + fn + "=" + (if x then "ON" else "OFF");
in
with stdenv.lib;
stdenv.mkDerivation rec{
name = "PPSSPP-${version}";
src = fetchgit {
url = "https://github.com/hrydgard/ppsspp.git";
rev = "refs/tags/v${version}";
fetchSubmodules = true;
sha256 = "0l8vgdlw657r8gv7rz8iqa6zd9zrbzw10pwhcnahzil7w9qrd03g";
};
buildInputs = [ zlib libpng qt4 ]
++ (if withGamepads then [ SDL ] else [ ]);
nativeBuildInputs = [ pkgconfig qmake4Hook ];
qmakeFlags = [ "PPSSPPQt.pro" ];
preConfigure = "cd Qt";
installPhase = "mkdir -p $out/bin && cp ppsspp $out/bin";
meta = {
homepage = http://www.ppsspp.org/;
description = "A PSP emulator, the Qt4 version";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fuuzetsu AndersonTorres ];
platforms = platforms.linux ++ platforms.darwin ++ platforms.cygwin;
};
}