2015-06-09 12:24:18 +02:00
|
|
|
{ stdenv, gcc5, pkgconfig, cmake, bluez, ffmpeg, libao, mesa, gtk2, glib
|
2014-09-02 10:19:44 +02:00
|
|
|
, gettext, git, libpthreadstubs, libXrandr, libXext, readline
|
2015-08-02 12:17:03 +02:00
|
|
|
, openal, libXdmcp, portaudio, fetchgit, libusb, libevdev
|
2015-05-27 21:42:15 +02:00
|
|
|
, libpulseaudio ? null }:
|
2014-09-02 10:19:44 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-02 12:17:03 +02:00
|
|
|
name = "dolphin-emu-20150802";
|
2014-09-02 10:19:44 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/dolphin-emu/dolphin.git;
|
2015-08-02 12:17:03 +02:00
|
|
|
rev = "5097a22844b850b429872f4de390bd958b11a616";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "09jx61cxvfimnq1snkv6w3m9qidrgp0j0w81c7pbkpmcwysz8xya";
|
2014-10-03 09:08:23 +02:00
|
|
|
fetchSubmodules = false;
|
2014-09-02 10:19:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = ''
|
2016-04-14 03:11:58 +02: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 19:34:51 +02:00
|
|
|
-DGTK2_INCLUDE_DIRS=${gtk2.dev}/include/gtk-2.0
|
2014-09-02 10:19:44 +02:00
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
-DENABLE_LTO=True
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-06-09 12:24:18 +02:00
|
|
|
buildInputs = [ gcc5 pkgconfig cmake bluez ffmpeg libao mesa gtk2 glib
|
2014-09-02 10:19:44 +02:00
|
|
|
gettext libpthreadstubs libXrandr libXext readline openal
|
2015-08-02 12:17:03 +02:00
|
|
|
libevdev git libXdmcp portaudio libusb libpulseaudio ];
|
2014-09-02 10:19:44 +02: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 15:43:15 +01: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 10:19:44 +02:00
|
|
|
};
|
|
|
|
}
|