diff --git a/pkgs/applications/video/kodi/addons/libretro-fuse/default.nix b/pkgs/applications/video/kodi/addons/libretro-fuse/default.nix new file mode 100644 index 000000000000..776341b60796 --- /dev/null +++ b/pkgs/applications/video/kodi/addons/libretro-fuse/default.nix @@ -0,0 +1,31 @@ +{ lib, buildKodiBinaryAddon, fetchFromGitHub, libretro, fuse }: + +buildKodiBinaryAddon rec { + pname = "libretro-fuse"; + namespace = "game.libretro.fuse"; + version = "1.6.0.34"; + + src = fetchFromGitHub { + owner = "kodi-game"; + repo = "game.libretro.fuse"; + rev = "${version}-Nexus"; + hash = "sha256-MimwEV7YD6pMshxqbKTVbLDsPmMbqSy4HPnxwmKswpc="; + }; + + extraCMakeFlags = [ + "-DFUSE_LIB=${fuse}/lib/retroarch/cores/fuse_libretro.so" + ]; + + extraBuildInputs = [ fuse ]; + propagatedBuildInputs = [ + libretro + ]; + + meta = with lib; { + homepage = "https://github.com/kodi-game/game.libretro.fuse"; + description = "Sinclair - ZX Spectrum (Fuse) GameClient for Kodi"; + platforms = platforms.all; + license = licenses.gpl3Only; + maintainers = with maintainers; teams.kodi.members ++ [ kazenyuk ]; + }; +} diff --git a/pkgs/top-level/kodi-packages.nix b/pkgs/top-level/kodi-packages.nix index 8cb51cd5afb7..c975cf135e5b 100644 --- a/pkgs/top-level/kodi-packages.nix +++ b/pkgs/top-level/kodi-packages.nix @@ -3,7 +3,7 @@ with lib; let - inherit (libretro) genesis-plus-gx mgba snes9x twenty-fortyeight; + inherit (libretro) fuse genesis-plus-gx mgba snes9x twenty-fortyeight; in let self = rec { @@ -64,6 +64,8 @@ let self = rec { libretro-2048 = callPackage ../applications/video/kodi/addons/libretro-2048 { inherit twenty-fortyeight; }; + libretro-fuse = callPackage ../applications/video/kodi/addons/libretro-fuse { inherit fuse; }; + libretro-genplus = callPackage ../applications/video/kodi/addons/libretro-genplus { inherit genesis-plus-gx; }; libretro-mgba = callPackage ../applications/video/kodi/addons/libretro-mgba { inherit mgba; };