git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #11369 from cpages/kodi

kodiPlugins.pvr-hts: init at 2.1.18

commitb1dca6ca881e3e5864c60a2ef206579ce4d718b1 authorCarles Pagès <page@cubata.homelinux.net> dateSat 5 Dec 2015, 08:53 (11 years ago) parent0a745f55d9148c
3 files changed+52−4
pkgs/applications/video/kodi/plugins.nix+49−2 pkgs/applications/video/kodi/wrapper.nix+2−2 pkgs/top-level/all-packages.nix+1
pkgs/applications/video/kodi/plugins.nix+49−2
@@ -1,8 +1,23 @@
1−{ stdenv, fetchFromGitHub, kodi, steam }:
1+{ stdenv, fetchFromGitHub, cmake, kodi, steam, libcec_platform, tinyxml }:
22
33let
44
5− pluginDir = "/lib/kodi/plugin";
5+ pluginDir = "/share/kodi/addons";
6+
7+ kodi-platform = stdenv.mkDerivation rec {
8+ project = "kodi-platform";
9+ version = "15.2";
10+ name = "${project}-${version}";
11+
12+ src = fetchFromGitHub {
13+ owner = "xbmc";
14+ repo = project;
15+ rev = "45d6ad1984fdb1dc855076ff18484dbec33939d1";
16+ sha256 = "1fai33mwyv5ab47b16i692g7a3vcnmxavx13xin2gh16y0qm62hi";
17+ };
18+
19+ buildInputs = [ cmake kodi libcec_platform tinyxml ];
20+ };
621
722 mkKodiPlugin = { plugin, namespace, version, src, meta, ... }:
823 stdenv.lib.makeOverridable stdenv.mkDerivation rec {
@@ -134,4 +149,36 @@ in
134149 propagatedBuildinputs = [ steam ];
135150 };
136151
152+ pvr-hts = (mkKodiPlugin rec {
153+ plugin = "pvr-hts";
154+ namespace = "pvr.hts";
155+ version = "2.1.18";
156+
157+ src = fetchFromGitHub {
158+ owner = "kodi-pvr";
159+ repo = "pvr.hts";
160+ rev = "016b0b3251d6d5bffaf68baf59010e4347759c4a";
161+ sha256 = "03lhxipz03r516pycabqc9b89kd7wih3c2dr4p602bk64bsmpi0j";
162+ };
163+
164+ meta = with stdenv.lib; {
165+ homepage = https://github.com/kodi-pvr/pvr.hts;
166+ description = "Kodi's Tvheadend HTSP client addon";
167+ platforms = platforms.all;
168+ maintainers = with maintainers; [ page ];
169+ };
170+ }).override {
171+ buildInputs = [ cmake kodi libcec_platform kodi-platform ];
172+
173+ # disables check ensuring install prefix is that of kodi
174+ cmakeFlags = [ "-DOVERRIDE_PATHS=1" ];
175+
176+ # kodi checks for plugin .so libs existance in the addon folder (share/...)
177+ # and the non-wrapped kodi lib/... folder before even trying to dlopen
178+ # them. Symlinking .so, as setting LD_LIBRARY_PATH is of no use
179+ installPhase = ''
180+ make install
181+ ln -s $out/lib/kodi/addons/pvr.hts/pvr.hts.so $out/share/kodi/addons/pvr.hts
182+ '';
183+ };
137184}
pkgs/applications/video/kodi/wrapper.nix+2−2
@@ -14,7 +14,7 @@ stdenv.mkDerivation {
1414 buildInputs = [ makeWrapper ];
1515
1616 buildCommand = ''
17− mkdir -p $out/share/kodi/addons/packages
17+ mkdir -p $out/share/kodi/addons
1818 ${stdenv.lib.concatMapStrings
1919 (plugin: "ln -s ${plugin.out
2020 + plugin.kodiPlugin
@@ -50,4 +50,4 @@ stdenv.mkDerivation {
5050
5151 };
5252
53−}
53+}
pkgs/top-level/all-packages.nix+1
@@ -13568,6 +13568,7 @@ let
1356813568 ++ optional (config.kodi.enableGenesis or false) genesis
1356913569 ++ optional (config.kodi.enableSVTPlay or false) svtplay
1357013570 ++ optional (config.kodi.enableSteamLauncher or false) steam-launcher
13571+ ++ optional (config.kodi.enablePVRHTS or false) pvr-hts
1357113572 );
1357213573 };
1357313574