summary refs log tree commit diff
path: root/pkgs/misc/emulators
diff options
context:
space:
mode:
authorDarkScythe97 <darknx97@gmail.com>2018-03-04 05:39:18 +0000
committerJörg Thalheim <Mic92@users.noreply.github.com>2018-03-04 05:39:18 +0000
commit799178fe453149ed8d5133d2db7a5b3b42a29e1c (patch)
treecc27f0e3881d70bd017f74d033c0a324ebd011ac /pkgs/misc/emulators
parentbb284c56ce1833639725b650afe49268fd6c06b9 (diff)
downloadnixlib-799178fe453149ed8d5133d2db7a5b3b42a29e1c.tar
nixlib-799178fe453149ed8d5133d2db7a5b3b42a29e1c.tar.gz
nixlib-799178fe453149ed8d5133d2db7a5b3b42a29e1c.tar.bz2
nixlib-799178fe453149ed8d5133d2db7a5b3b42a29e1c.tar.lz
nixlib-799178fe453149ed8d5133d2db7a5b3b42a29e1c.tar.xz
nixlib-799178fe453149ed8d5133d2db7a5b3b42a29e1c.tar.zst
nixlib-799178fe453149ed8d5133d2db7a5b3b42a29e1c.zip
libretro: add higan-sfc core (#36238)
Diffstat (limited to 'pkgs/misc/emulators')
-rw-r--r--pkgs/misc/emulators/retroarch/cores.nix17
1 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/misc/emulators/retroarch/cores.nix b/pkgs/misc/emulators/retroarch/cores.nix
index 090942371d73..4b5e118a319b 100644
--- a/pkgs/misc/emulators/retroarch/cores.nix
+++ b/pkgs/misc/emulators/retroarch/cores.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchgit, cmake, pkgconfig, makeWrapper, python27, retroarch
+{ stdenv, fetchgit, fetchFromGitLab, 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 }:
@@ -215,6 +215,21 @@ in with stdenv.lib.licenses;
     license = "Non-commercial";
   };
 
+  higan-sfc = (mkLibRetroCore rec {
+    core = "higan-sfc";
+    src = fetchFromGitLab {
+      owner = "higan";
+      repo = "higan";
+      rev = "d3f592013a27cb78f17d84f90a6be6cf6f6af1d1";
+      sha256 = "19d4cbwg8d085xq5lmql4v5l4ckgwqzc59ha5yfgv3w4qfp4dmij";
+    };
+    description = "Accurate SNES / Super Famicom emulator";
+    license = gpl3;
+  }).override {
+    makefile = "GNUmakefile";
+    buildPhase = "cd higan && make compiler=g++ target=libretro binary=library && cd out";
+  };
+
   mame = (mkLibRetroCore {
     core = "mame";
     src = fetchRetro {