about summary refs log tree commit diff
path: root/pkgs/applications/video/kodi/addons/plugin-cache/default.nix
blob: c21f5e136e41e2c413c0a69c1d25121d7df26b37 (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
{ lib, rel, buildKodiAddon, fetchzip, addonUpdateScript }:

buildKodiAddon rec {
  pname = "plugin-cache";
  namespace = "script.common.plugin.cache";
  version = "3.0.0";

  src = fetchzip {
    url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip";
    sha256 = "sha256-5QcMNmWOEw2C26OXlvAvxqDxTpjIMBhwmaIFwVgHuIU=";
  };

  passthru = {
    pythonPath = "resources/lib";
    updateScript = addonUpdateScript {
      attrPath = "kodi.packages.plugin-cache";
    };
  };

  meta = with lib; {
    homepage = "https://github.com/anxdpanic/script.common.plugin.cache";
    description = "Common plugin cache";
    license = licenses.gpl3Only;
    maintainers = teams.kodi.members;
  };
}