diff --git a/pkgs/applications/video/kodi/addons/libretro-2048/default.nix b/pkgs/applications/video/kodi/addons/libretro-2048/default.nix new file mode 100644 index 000000000000..67644444d891 --- /dev/null +++ b/pkgs/applications/video/kodi/addons/libretro-2048/default.nix @@ -0,0 +1,31 @@ +{ lib, buildKodiBinaryAddon, fetchFromGitHub, libretro, twenty-fortyeight }: + +buildKodiBinaryAddon rec { + pname = "libretro-2048"; + namespace = "game.libretro.2048"; + version = "1.0.0.136"; + + src = fetchFromGitHub { + owner = "kodi-game"; + repo = "game.libretro.2048"; + rev = "${version}-Nexus"; + hash = "sha256-cIo56ZGansBlAj6CFw51UOYJUivN9n1qhVTWAX9c5Tc="; + }; + + extraCMakeFlags = [ + "-D2048_LIB=${twenty-fortyeight}/lib/retroarch/cores/2048_libretro.so" + ]; + + extraBuildInputs = [ twenty-fortyeight ]; + propagatedBuildInputs = [ + libretro + ]; + + meta = with lib; { + homepage = "https://github.com/kodi-game/game.libretro.2048"; + description = "2048 GameClient for Kodi"; + platforms = platforms.all; + license = licenses.publicDomain; + maintainers = with maintainers; teams.kodi.members ++ [ kazenyuk ]; + }; +} diff --git a/pkgs/top-level/kodi-packages.nix b/pkgs/top-level/kodi-packages.nix index d3d245172944..9d42fb548345 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; + inherit (libretro) genesis-plus-gx mgba snes9x twenty-fortyeight; in let self = rec { @@ -62,6 +62,8 @@ let self = rec { libretro = callPackage ../applications/video/kodi/addons/libretro { }; + libretro-2048 = callPackage ../applications/video/kodi/addons/libretro-2048 { inherit twenty-fortyeight; }; + libretro-genplus = callPackage ../applications/video/kodi/addons/libretro-genplus { inherit genesis-plus-gx; }; libretro-mgba = callPackage ../applications/video/kodi/addons/libretro-mgba { inherit mgba; };