@@ -1,4 +1,4 @@
1−{ stdenv, fetchgit, cmake, pkgconfig, makeWrapper, python27, retroarch
1+{ stdenv, fetchgit, fetchFromGitLab, cmake, pkgconfig, makeWrapper, python27, retroarch
22, alsaLib, fluidsynth, curl, hidapi, mesa, gettext, glib, gtk2, portaudio, SDL
33, ffmpeg, pcre, libevdev, libpng, libjpeg, libudev, libvorbis
44, miniupnpc, sfml, xorg, zlib }:
@@ -215,6 +215,21 @@ in with stdenv.lib.licenses;
215215 license = "Non-commercial";
216216 };
217217
218+ higan-sfc = (mkLibRetroCore rec {
219+ core = "higan-sfc";
220+ src = fetchFromGitLab {
221+ owner = "higan";
222+ repo = "higan";
223+ rev = "d3f592013a27cb78f17d84f90a6be6cf6f6af1d1";
224+ sha256 = "19d4cbwg8d085xq5lmql4v5l4ckgwqzc59ha5yfgv3w4qfp4dmij";
225+ };
226+ description = "Accurate SNES / Super Famicom emulator";
227+ license = gpl3;
228+ }).override {
229+ makefile = "GNUmakefile";
230+ buildPhase = "cd higan && make compiler=g++ target=libretro binary=library && cd out";
231+ };
232+
218233 mame = (mkLibRetroCore {
219234 core = "mame";
220235 src = fetchRetro {