about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/video/kodi/addons/somafm/default.nix
blob: e2d5ca38bf4431ccb2c79961a6813fa3e678523f (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 = "somafm";
  namespace = "plugin.audio.somafm";
  version = "2.0.1";

  src = fetchzip {
    url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/plugin.audio.somafm/plugin.audio.somafm-${version}.zip";
    sha256 = "sha256-auPLm7QFabU4tXJPjTl17KpE+lqWM2Edbd2HrXPRx40=";
  };

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

  meta = with lib; {
    homepage = "https://github.com/Soma-FM-Kodi-Add-On/plugin.audio.somafm";
    description = "SomaFM addon for Kodi";
    license = licenses.gpl3Plus;
    maintainers = teams.kodi.members;
  };
}