Skip to content

Commit beb04aa

Browse files
committedJun 4, 2017
libretro.dolphin: init at 2017-06-04
1 parent 5cb03b9 commit beb04aa

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed
 

‎pkgs/misc/emulators/retroarch/cores.nix

+32-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
{ stdenv, fetchgit, pkgconfig, makeWrapper, python27, retroarch
2-
, alsaLib, fluidsynth, mesa, portaudio, SDL, ffmpeg, libpng, libjpeg
3-
, libvorbis, xorg, zlib }:
1+
{ stdenv, fetchgit, cmake, pkgconfig, makeWrapper, python27, retroarch
2+
, alsaLib, fluidsynth, curl, hidapi, mesa, gettext, glib, gtk2, portaudio, SDL
3+
, ffmpeg, pcre, libevdev, libpng, libjpeg, libudev, libvorbis
4+
, miniupnpc, sfml, xorg, zlib }:
45

56
let
67

@@ -126,6 +127,34 @@ in
126127
configurePhase = "cd desmume";
127128
};
128129

130+
dolphin = (mkLibRetroCore {
131+
core = "dolphin";
132+
src = fetchRetro {
133+
repo = "dolphin";
134+
rev = "a6ad451fdd4ac8753fd1a8e2234ec34674677754";
135+
sha256 = "1cshlfmhph8dl3vgvn37imvp2b7xs2cx1r1ifp5js5psvhycrbz3";
136+
};
137+
description = "Port of Dolphin to libretro";
138+
139+
extraBuildInputs = [
140+
cmake curl mesa pcre pkgconfig sfml miniupnpc
141+
gettext glib gtk2 hidapi
142+
libevdev libudev
143+
] ++ (with xorg; [ libSM libX11 libXi libpthreadstubs libxcb xcbutil ]);
144+
}).override {
145+
cmakeFlags = [
146+
"-DLINUX_LOCAL_DEV=true"
147+
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
148+
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
149+
"-DGTK2_INCLUDE_DIRS=${gtk2.dev}/include/gtk-2.0"
150+
];
151+
dontUseCmakeBuildDir = "yes";
152+
buildPhase = ''
153+
cd Source/Core/DolphinLibretro
154+
make
155+
'';
156+
};
157+
129158
fba = (mkLibRetroCore rec {
130159
core = "fba";
131160
src = fetchRetro {

‎pkgs/top-level/all-packages.nix

+1
Original file line numberDiff line numberDiff line change
@@ -16483,6 +16483,7 @@ with pkgs;
1648316483
++ optional (cfg.enableBeetleSaturn or false) beetle-saturn
1648416484
++ optional (cfg.enableBsnesMercury or false) bsnes-mercury
1648516485
++ optional (cfg.enableDesmume or false) desmume
16486+
++ optional (cfg.enableDolphin or false) dolphin
1648616487
++ optional (cfg.enableFBA or false) fba
1648716488
++ optional (cfg.enableFceumm or false) fceumm
1648816489
++ optional (cfg.enableGambatte or false) gambatte

0 commit comments

Comments
 (0)
Please sign in to comment.