summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey Kazenyuk <kazenyuk@pm.me>2023-07-25 13:46:54 +0300
committerSergey Kazenyuk <kazenyuk@pm.me>2023-07-25 13:46:54 +0300
commit40f2137a73bb4e24fee895a30d7ac4ca3b1e0889 (patch)
tree7b022a397b5b6b618556a9d031d4221290822278
parent46f4a37dcfb98d962ce7c59160b0355478f549ea (diff)
downloadnixpkgs-40f2137a73bb4e24fee895a30d7ac4ca3b1e0889.tar
nixpkgs-40f2137a73bb4e24fee895a30d7ac4ca3b1e0889.tar.gz
nixpkgs-40f2137a73bb4e24fee895a30d7ac4ca3b1e0889.tar.bz2
nixpkgs-40f2137a73bb4e24fee895a30d7ac4ca3b1e0889.tar.lz
nixpkgs-40f2137a73bb4e24fee895a30d7ac4ca3b1e0889.tar.xz
nixpkgs-40f2137a73bb4e24fee895a30d7ac4ca3b1e0889.tar.zst
nixpkgs-40f2137a73bb4e24fee895a30d7ac4ca3b1e0889.zip
kodiPackages.libretro-nestopia: init at 1.52.0.41
-rw-r--r--pkgs/applications/video/kodi/addons/libretro-nestopia/default.nix31
-rw-r--r--pkgs/top-level/kodi-packages.nix4
2 files changed, 34 insertions, 1 deletions
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 00000000000..7c6eda2b004
--- /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 c975cf135e5..edf5349f828 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 { };