about summary refs log tree commit diff
path: root/pkgs/applications/video/kodi-packages/controllers/default.nix
blob: bd29b7c0f7c3083db6af4b6ed38a22ec0b3fb9b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib, buildKodiAddon, fetchFromGitHub, controller }:
buildKodiAddon rec {
  pname = "game-controller-${controller}";
  namespace = "game.controller.${controller}";
  version = "1.0.3";

  sourceDir = "addons/" + namespace;

  src = fetchFromGitHub {
    owner = "kodi-game";
    repo = "kodi-game-controllers";
    rev = "01acb5b6e8b85392b3cb298b034aadb1b24ccf18";
    sha256 = "0sbc0w0fwbp7rbmbgb6a1kglhnn5g85hijcbbvf5x6jdq9v3f1qb";
  };

  meta = with lib; {
    description = "Add support for different gaming controllers.";
    platforms = platforms.all;
    maintainers = with maintainers; [ edwtjo ];
  };
}