about summary refs log tree commit diff
path: root/pkgs/applications/video/kodi/addons/libretro-snes9x/default.nix
blob: 7b52988e80cff2e134d6505ad078329b9ad0a230 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, buildKodiBinaryAddon, fetchFromGitHub, libretro, snes9x }:

buildKodiBinaryAddon rec {
  pname = "kodi-libretro-snes9x";
  namespace = "game.libretro.snes9x";
  version = "1.61.0.34";

  src = fetchFromGitHub {
    owner = "kodi-game";
    repo = "game.libretro.snes9x";
    rev = "${version}-Matrix";
    sha256 = "sha256-LniZf8Gae4+4Rgc9OGhMCkOI3IA7CPjVrN/gbz9te38=";
  };

  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;
  };
}