libretro.dolphin: init at 2017-06-04

This commit is contained in:
Edward Tjörnhammar 2017-06-04 10:10:14 +02:00
parent 5cb03b9538
commit beb04aabac
No known key found for this signature in database
GPG Key ID: 7B82CE4A866B6845
2 changed files with 33 additions and 3 deletions

View File

@ -1,6 +1,7 @@
{ stdenv, fetchgit, pkgconfig, makeWrapper, python27, retroarch
, alsaLib, fluidsynth, mesa, portaudio, SDL, ffmpeg, libpng, libjpeg
, libvorbis, xorg, zlib }:
{ stdenv, fetchgit, cmake, pkgconfig, makeWrapper, python27, retroarch
, alsaLib, fluidsynth, curl, hidapi, mesa, gettext, glib, gtk2, portaudio, SDL
, ffmpeg, pcre, libevdev, libpng, libjpeg, libudev, libvorbis
, miniupnpc, sfml, xorg, zlib }:
let
@ -126,6 +127,34 @@ in
configurePhase = "cd desmume";
};
dolphin = (mkLibRetroCore {
core = "dolphin";
src = fetchRetro {
repo = "dolphin";
rev = "a6ad451fdd4ac8753fd1a8e2234ec34674677754";
sha256 = "1cshlfmhph8dl3vgvn37imvp2b7xs2cx1r1ifp5js5psvhycrbz3";
};
description = "Port of Dolphin to libretro";
extraBuildInputs = [
cmake curl mesa pcre pkgconfig sfml miniupnpc
gettext glib gtk2 hidapi
libevdev libudev
] ++ (with xorg; [ libSM libX11 libXi libpthreadstubs libxcb xcbutil ]);
}).override {
cmakeFlags = [
"-DLINUX_LOCAL_DEV=true"
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
"-DGTK2_INCLUDE_DIRS=${gtk2.dev}/include/gtk-2.0"
];
dontUseCmakeBuildDir = "yes";
buildPhase = ''
cd Source/Core/DolphinLibretro
make
'';
};
fba = (mkLibRetroCore rec {
core = "fba";
src = fetchRetro {

View File

@ -16483,6 +16483,7 @@ with pkgs;
++ optional (cfg.enableBeetleSaturn or false) beetle-saturn
++ optional (cfg.enableBsnesMercury or false) bsnes-mercury
++ optional (cfg.enableDesmume or false) desmume
++ optional (cfg.enableDolphin or false) dolphin
++ optional (cfg.enableFBA or false) fba
++ optional (cfg.enableFceumm or false) fceumm
++ optional (cfg.enableGambatte or false) gambatte