Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.2 KiB
Nix

{
lib,
addonDir,
buildKodiAddon,
fetchFromGitHub,
addonUpdateScript,
kodi-six,
six,
requests,
}:
buildKodiAddon rec {
pname = "plex";
namespace = "script.plex";
version = "0.7.9-rev4";
src = fetchFromGitHub {
owner = "pannal";
repo = "plex-for-kodi";
rev = "v${version}";
sha256 = "sha256-rNxTz3SKHHBm0WDCoZ/foJN2pBBiyI3a/tOdQdOCuXA=";
};
# Plex for Kodi writes to its own directory by default, needs to be patched to a non-store path.
# Once https://github.com/pannal/plex-for-kodi/pull/219 is merged, this can be replaced with a smaller patch that just sets the environment variable INSTALLATION_DIR_AVOID_WRITE, e.g. adding to main.py:
# import os; os.environ("INSTALLATION_DIR_AVOID_WRITE") = True
patches = [ ./plex-template-dir.patch ];
propagatedBuildInputs = [
six
requests
kodi-six
];
passthru = {
updateScript = addonUpdateScript {
attrPath = "kodi.packages.plex";
};
};
postInstall = ''
mv /build/source/addon.xml $out${addonDir}/${namespace}/
'';
meta = with lib; {
homepage = "https://www.plex.tv";
description = "Unofficial Plex for Kodi add-on";
license = licenses.gpl2Only;
maintainers = teams.kodi.members;
};
}