1 { lib, stdenv, fetchFromGitHub, toKodiAddon, addonDir }:
3 drv = stdenv.mkDerivation rec {
4 pname = "controller-topology-project";
7 src = fetchFromGitHub {
9 repo = "controller-topology-project";
11 sha256 = "sha256-6g4dyR34b0YgxlzRRS2C/gY3wjlO9MMYEB2fHLSCqC4=";
15 # remove addons already included in the base kodi package
16 rm -r addons/game.controller.default
17 rm -r addons/game.controller.keyboard
18 rm -r addons/game.controller.mouse
19 rm -r addons/game.controller.snes
24 mkdir -p $out${addonDir}
25 cp -r addons/* $out${addonDir}
30 homepage = "https://github.com/kodi-game/controller-topology-project";
31 description = "Models how controllers connect to and map to each other for all gaming history";
32 license = with licenses; [ odbl ];
33 maintainers = teams.kodi.members;