Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster
2016-02-27 00:08:08 +00:00
504 changed files with 28750 additions and 13232 deletions
+71
View File
@@ -0,0 +1,71 @@
{ alsaLib, cmake, fetchFromGitHub, glib, gtk2, gettext, libaio, libpng
, makeWrapper, perl, pkgconfig, portaudio, SDL2, soundtouch, stdenv
, wxGTK30, zlib }:
assert stdenv.isi686;
stdenv.mkDerivation rec {
name = "pcsx2-${version}";
version = "1.4.0";
src = fetchFromGitHub {
owner = "PCSX2";
repo = "pcsx2";
rev = "v${version}";
sha256 = "0s7mxq2cgzwjfsq0vhpz6ljk7wr725nxg48128iyirf85585l691";
};
configurePhase = ''
mkdir -p build
cd build
cmake \
-DBIN_DIR="$out/bin" \
-DCMAKE_BUILD_PO=TRUE \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$out" \
-DDISABLE_PCSX2_WRAPPER=TRUE \
-DDOC_DIR="$out/share/doc/pcsx2" \
-DGAMEINDEX_DIR="$out/share/pcsx2" \
-DGLSL_SHADER_DIR="$out/share/pcsx2" \
-DGTK2_GLIBCONFIG_INCLUDE_DIR='${glib}/lib/glib-2.0/include' \
-DGTK2_GDKCONFIG_INCLUDE_DIR='${gtk2}/lib/gtk-2.0/include' \
-DGTK2_INCLUDE_DIRS='${gtk2}/include/gtk-2.0' \
-DPACKAGE_MODE=TRUE \
-DPLUGIN_DIR="$out/lib/pcsx2" \
-DREBUILD_SHADER=TRUE \
..
'';
postFixup = ''
wrapProgram $out/bin/PCSX2 \
--set __GL_THREADED_OPTIMIZATIONS 1
'';
nativeBuildInputs = [ cmake perl pkgconfig ];
buildInputs = [
alsaLib glib gettext gtk2 libaio libpng makeWrapper portaudio SDL2
soundtouch wxGTK30 zlib
];
meta = with stdenv.lib; {
description = "Playstation 2 emulator";
longDescription= ''
PCSX2 is an open-source PlayStation 2 (AKA PS2) emulator. Its purpose
is to emulate the PS2 hardware, using a combination of MIPS CPU
Interpreters, Recompilers and a Virtual Machine which manages hardware
states and PS2 system memory. This allows you to play PS2 games on your
PC, with many additional features and benefits.
'';
homepage = http://pcsx2.net;
maintainers = with maintainers; [ hrdinka ];
# PCSX2's source code is released under LGPLv3+. It However ships
# additional data files and code that are licensed differently.
# This might be solved in future, for now we should stick with
# license.free
license = licenses.free;
platforms = platforms.i686;
};
}
+16 -6
View File
@@ -30,23 +30,33 @@ in rec {
};
unstable = fetchurl rec {
version = "1.9.3";
version = "1.9.4";
url = "mirror://sourceforge/wine/wine-${version}.tar.bz2";
sha256 = "0389xbs943iwdgv3a6pvcy2gxrwqzf20vrsbpd2yrj1lan2m8ps7";
inherit (stable) gecko32 gecko64 mono;
sha256 = "1f5v1gns0xs512a6ym785cn29j8dxdbnxnvkg8v0p1w0p6vfmhbm";
inherit (stable) mono;
gecko32 = fetchurl rec {
version = "2.44";
url = "http://dl.winehq.org/wine/wine-gecko/${version}/wine_gecko-${version}-x86.msi";
sha256 = "0fbd8pxkihhfxs5mcx8n0rcygdx43qdrp2x8hq1s1cvifp8lm9kp";
};
gecko64 = fetchurl rec {
version = "2.44";
url = "http://dl.winehq.org/wine/wine-gecko/${version}/wine_gecko-${version}-x86_64.msi";
sha256 = "0qb6zx4ycj37q26y2zn73w49bxifdvh9n4riy39cn1kl7c6mm3k2";
};
};
staging = fetchFromGitHub rec {
inherit (unstable) version;
sha256 = "0r932caxlkdw36f36f8y4h2r3anpl61fmqr9payb83fj55gsiq4d";
sha256 = "0xjxbip0ab1lqgxrww08082ndsb8b5wjfwlf51zlr3f59c9bx9y5";
owner = "wine-compholio";
repo = "wine-staging";
rev = "v${version}";
};
winetricks = fetchFromGitHub rec {
version = "20160109";
sha256 = "0pnl5362g5q7py368vj07swbdp1fqbpvpq4jv4l5ddyclps8ajg8";
version = "20160219";
sha256 = "1wqsbdh2qa5xxswilniki9wzbhlmkl6jqmryjd9f5smirr7ryy2r";
owner = "Winetricks";
repo = "winetricks";
rev = version;