diff --git a/pkgs/applications/video/kodi/addons/libretro-gw/default.nix b/pkgs/applications/video/kodi/addons/libretro-gw/default.nix new file mode 100644 index 000000000000..0ba14aa80a45 --- /dev/null +++ b/pkgs/applications/video/kodi/addons/libretro-gw/default.nix @@ -0,0 +1,38 @@ +{ + lib, + rel, + buildKodiBinaryAddon, + fetchFromGitHub, + libretro, + gw, +}: + +buildKodiBinaryAddon rec { + pname = "libretro-gw"; + namespace = "game.libretro.gw"; + version = "1.6.3.34"; + + src = fetchFromGitHub { + owner = "kodi-game"; + repo = "game.libretro.gw"; + rev = "${version}-${rel}"; + hash = "sha256-HYXR3cEjbdKgKy42nq36Ii3UyxRVuQVROQjyaxSp5Ro="; + }; + + extraCMakeFlags = [ + "-DGW_LIB=${gw}/lib/retroarch/cores/gw_libretro.so" + ]; + + extraBuildInputs = [ gw ]; + propagatedBuildInputs = [ + libretro + ]; + + meta = with lib; { + homepage = "https://github.com/kodi-game/game.libretro.gw"; + description = "Game and Watch 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 d82b6d150a8b..317d9a5778ca 100644 --- a/pkgs/top-level/kodi-packages.nix +++ b/pkgs/top-level/kodi-packages.nix @@ -9,7 +9,7 @@ let unique ; - inherit (libretro) fuse genesis-plus-gx mgba nestopia snes9x twenty-fortyeight; + inherit (libretro) fuse genesis-plus-gx gw mgba nestopia snes9x twenty-fortyeight; callPackage = newScope self; @@ -75,6 +75,8 @@ let libretro-genplus = callPackage ../applications/video/kodi/addons/libretro-genplus { inherit genesis-plus-gx; }; + libretro-gw = callPackage ../applications/video/kodi/addons/libretro-gw { inherit gw; }; + libretro-mgba = callPackage ../applications/video/kodi/addons/libretro-mgba { inherit mgba; }; libretro-nestopia = callPackage ../applications/video/kodi/addons/libretro-nestopia { inherit nestopia; };