From beb04aabac132833e4f33e6ecbb92d6ae7380ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Tj=C3=B6rnhammar?= Date: Sun, 4 Jun 2017 10:10:14 +0200 Subject: [PATCH] libretro.dolphin: init at 2017-06-04 --- pkgs/misc/emulators/retroarch/cores.nix | 35 ++++++++++++++++++++++--- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/emulators/retroarch/cores.nix b/pkgs/misc/emulators/retroarch/cores.nix index 9d3117602986..79dc382c92d9 100644 --- a/pkgs/misc/emulators/retroarch/cores.nix +++ b/pkgs/misc/emulators/retroarch/cores.nix @@ -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 { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ce212b7482e9..375ec6818bb3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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