Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
toKodiAddon,
|
|
addonDir,
|
|
}:
|
|
let
|
|
drv = stdenv.mkDerivation rec {
|
|
pname = "controller-topology-project";
|
|
version = "1.0.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kodi-game";
|
|
repo = "controller-topology-project";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-LzwMKsoip+ajmmk4qUJynOmhhf3Auivn8Af8VRGWkTA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# remove addons already included in the base kodi package
|
|
rm -r addons/game.controller.default
|
|
rm -r addons/game.controller.keyboard
|
|
rm -r addons/game.controller.mouse
|
|
rm -r addons/game.controller.snes
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out${addonDir}
|
|
cp -r addons/* $out${addonDir}
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/kodi-game/controller-topology-project";
|
|
description = "Models how controllers connect to and map to each other for all gaming history";
|
|
license = with licenses; [ odbl ];
|
|
teams = [ teams.kodi ];
|
|
};
|
|
};
|
|
in
|
|
toKodiAddon drv
|