2016-07-07 10:30:36 +01:00
|
|
|
{ stdenv, gcc, pkgconfig, cmake, bluez, ffmpeg, libao, mesa, gtk2, glib
|
2014-09-02 09:19:44 +01:00
|
|
|
, gettext, git, libpthreadstubs, libXrandr, libXext, readline
|
2015-08-02 11:17:03 +01:00
|
|
|
, openal, libXdmcp, portaudio, fetchgit, libusb, libevdev
|
2015-05-27 20:42:15 +01:00
|
|
|
, libpulseaudio ? null }:
|
2014-09-02 09:19:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-02 11:17:03 +01:00
|
|
|
name = "dolphin-emu-20150802";
|
2014-09-02 09:19:44 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/dolphin-emu/dolphin.git;
|
2015-08-02 11:17:03 +01:00
|
|
|
rev = "5097a22844b850b429872f4de390bd958b11a616";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "09jx61cxvfimnq1snkv6w3m9qidrgp0j0w81c7pbkpmcwysz8xya";
|
2014-10-03 08:08:23 +01:00
|
|
|
fetchSubmodules = false;
|
2014-09-02 09:19:44 +01:00
|
|
|
};
|
|
|
|
|
2017-02-21 17:52:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
for f in Source/Core/VideoBackends/{Software,OGL}/RasterFont.{h,cpp}; do
|
|
|
|
substituteInPlace "$f" --replace " CHAR_WIDTH " " CHARWIDTH "
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2014-09-02 09:19:44 +01:00
|
|
|
cmakeFlags = ''
|
2016-04-14 02:11:58 +01:00
|
|
|
-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include
|
|
|
|
-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include
|
2016-04-16 18:34:51 +01:00
|
|
|
-DGTK2_INCLUDE_DIRS=${gtk2.dev}/include/gtk-2.0
|
2014-09-02 09:19:44 +01:00
|
|
|
-DENABLE_LTO=True
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-07-07 10:30:36 +01:00
|
|
|
buildInputs = [ gcc pkgconfig cmake bluez ffmpeg libao mesa gtk2 glib
|
2014-09-02 09:19:44 +01:00
|
|
|
gettext libpthreadstubs libXrandr libXext readline openal
|
2015-08-02 11:17:03 +01:00
|
|
|
libevdev git libXdmcp portaudio libusb libpulseaudio ];
|
2014-09-02 09:19:44 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://dolphin-emu.org/;
|
|
|
|
description = "Gamecube/Wii/Triforce emulator for x86_64 and ARM";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ MP2E ];
|
2014-12-10 14:43:15 +00:00
|
|
|
# x86_32 is an unsupported platform.
|
|
|
|
# Enable generic build if you really want a JIT-less binary.
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2014-09-02 09:19:44 +01:00
|
|
|
};
|
|
|
|
}
|