diff --git a/pkgs/applications/video/kodi/addons/libretro-nestopia/default.nix b/pkgs/applications/video/kodi/addons/libretro-nestopia/default.nix new file mode 100644 index 000000000000..7c6eda2b0043 --- /dev/null +++ b/pkgs/applications/video/kodi/addons/libretro-nestopia/default.nix @@ -0,0 +1,31 @@ +{ lib, rel, buildKodiBinaryAddon, fetchFromGitHub, libretro, nestopia }: + +buildKodiBinaryAddon rec { + pname = "libretro-nestopia"; + namespace = "game.libretro.nestopia"; + version = "1.52.0.41"; + + src = fetchFromGitHub { + owner = "kodi-game"; + repo = "game.libretro.nestopia"; + rev = "${version}-${rel}"; + sha256 = "sha256-DmBO+HcfIBcz7p16dND09iwXWeObtU/doo/mJ0IZGGg="; + }; + + extraCMakeFlags = [ + "-DNESTOPIA_LIB=${nestopia}/lib/retroarch/cores/nestopia_libretro.so" + ]; + + extraBuildInputs = [ nestopia ]; + propagatedBuildInputs = [ + libretro + ]; + + meta = with lib; { + homepage = "https://github.com/kodi-game/game.libretro.nestopia"; + description = "Nintendo - NES / Famicom (Nestopia UE) GameClient for Kodi"; + platforms = platforms.all; + license = licenses.gpl2Only; + maintainers = teams.kodi.members; + }; +} diff --git a/pkgs/top-level/kodi-packages.nix b/pkgs/top-level/kodi-packages.nix index c975cf135e5b..edf5349f8281 100644 --- a/pkgs/top-level/kodi-packages.nix +++ b/pkgs/top-level/kodi-packages.nix @@ -3,7 +3,7 @@ with lib; let - inherit (libretro) fuse genesis-plus-gx mgba snes9x twenty-fortyeight; + inherit (libretro) fuse genesis-plus-gx mgba nestopia snes9x twenty-fortyeight; in let self = rec { @@ -70,6 +70,8 @@ let self = rec { libretro-mgba = callPackage ../applications/video/kodi/addons/libretro-mgba { inherit mgba; }; + libretro-nestopia = callPackage ../applications/video/kodi/addons/libretro-nestopia { inherit nestopia; }; + libretro-snes9x = callPackage ../applications/video/kodi/addons/libretro-snes9x { inherit snes9x; }; jellyfin = callPackage ../applications/video/kodi/addons/jellyfin { };