From 020738a1fb53c0123a9a4ebd578106aa04d3ac21 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Sat, 30 Oct 2021 15:59:56 -0400 Subject: [PATCH] kodi.packages.libretro-snes9x: init at 1.60.0.29 --- .../kodi-packages/libretro-snes9x/default.nix | 31 +++++++++++++++++++ pkgs/top-level/kodi-packages.nix | 8 ++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/video/kodi-packages/libretro-snes9x/default.nix diff --git a/pkgs/applications/video/kodi-packages/libretro-snes9x/default.nix b/pkgs/applications/video/kodi-packages/libretro-snes9x/default.nix new file mode 100644 index 000000000000..640aec3d4971 --- /dev/null +++ b/pkgs/applications/video/kodi-packages/libretro-snes9x/default.nix @@ -0,0 +1,31 @@ +{ lib, rel, buildKodiBinaryAddon, fetchFromGitHub, libretro, snes9x }: + +buildKodiBinaryAddon rec { + pname = "kodi-libretro-snes9x"; + namespace = "game.libretro.snes9x"; + version = "1.60.0.29"; + + src = fetchFromGitHub { + owner = "kodi-game"; + repo = "game.libretro.snes9x"; + rev = "${version}-${rel}"; + sha256 = "1wyfkg4fncc604alnbaqk92fi1h80n7bwiqfkb8479x5517byab1"; + }; + + extraCMakeFlags = [ + "-DSNES9X_LIB=${snes9x}/lib/retroarch/cores/snes9x_libretro.so" + ]; + + extraBuildInputs = [ snes9x ]; + propagatedBuildInputs = [ + libretro + ]; + + meta = with lib; { + homepage = "https://github.com/kodi-game/game.libretro.snes9x"; + description = "Snes9X 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 fb812e7bc115..4d5af021db0b 100644 --- a/pkgs/top-level/kodi-packages.nix +++ b/pkgs/top-level/kodi-packages.nix @@ -1,7 +1,11 @@ -{ lib, newScope, kodi }: +{ lib, newScope, kodi, libretro }: with lib; +let + inherit (libretro) snes9x; +in + let self = rec { addonDir = "/share/kodi/addons"; @@ -70,6 +74,8 @@ let self = rec { libretro = callPackage ../applications/video/kodi-packages/libretro { }; + libretro-snes9x = callPackage ../applications/video/kodi-packages/libretro-snes9x { inherit snes9x; }; + jellyfin = callPackage ../applications/video/kodi-packages/jellyfin { }; joystick = callPackage ../applications/video/kodi-packages/joystick { };