diff options
author | Jonathan Rudenberg <jonathan@titanous.com> | 2017-04-30 16:28:50 -0400 |
---|---|---|
committer | Jonathan Rudenberg <jonathan@titanous.com> | 2017-05-02 13:47:02 -0400 |
commit | 8a978a7be3121cab6b388d6f05a855b2aaa8846d (patch) | |
tree | d7d17a33b06fc276efeec33ba0d0efb9acdcc702 /pkgs/applications/video/kodi/plugins.nix | |
parent | 031156c41fc8ff9c759177e405fe429dad7ee3be (diff) | |
download | nixlib-8a978a7be3121cab6b388d6f05a855b2aaa8846d.tar nixlib-8a978a7be3121cab6b388d6f05a855b2aaa8846d.tar.gz nixlib-8a978a7be3121cab6b388d6f05a855b2aaa8846d.tar.bz2 nixlib-8a978a7be3121cab6b388d6f05a855b2aaa8846d.tar.lz nixlib-8a978a7be3121cab6b388d6f05a855b2aaa8846d.tar.xz nixlib-8a978a7be3121cab6b388d6f05a855b2aaa8846d.tar.zst nixlib-8a978a7be3121cab6b388d6f05a855b2aaa8846d.zip |
kodi: init pvr-hdhomerun plugin at 2.4.7
Diffstat (limited to 'pkgs/applications/video/kodi/plugins.nix')
-rw-r--r-- | pkgs/applications/video/kodi/plugins.nix | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/pkgs/applications/video/kodi/plugins.nix b/pkgs/applications/video/kodi/plugins.nix index 41298269a184..8228c2c6cd92 100644 --- a/pkgs/applications/video/kodi/plugins.nix +++ b/pkgs/applications/video/kodi/plugins.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, fetchFromGitHub, fetchpatch, lib -, unzip, cmake, kodi, steam, libcec_platform, tinyxml }: +, unzip, cmake, kodi, steam, libcec_platform, tinyxml +, jsoncpp, libhdhomerun }: let @@ -265,4 +266,37 @@ in ln -s $out/lib/addons/pvr.hts/pvr.hts.so* $out/share/kodi/addons/pvr.hts ''; }; + + pvr-hdhomerun = (mkKodiPlugin rec { + plugin = "pvr-hdhomerun"; + namespace = "pvr.hdhomerun"; + version = "2.4.7"; + + src = fetchFromGitHub { + owner = "kodi-pvr"; + repo = "pvr.hdhomerun"; + rev = "60d89d16dd953d38947e8a6da2f8bb84a0f764ef"; + sha256 = "0dvdv0vk2q12nj0i5h51iaypy3i7jfsxjyxwwpxfy82y8260ragy"; + }; + + meta = with stdenv.lib; { + homepage = https://github.com/kodi-pvr/pvr.hdhomerun; + description = "Kodi's HDHomeRun PVR client addon"; + platforms = platforms.all; + maintainers = with maintainers; [ titanous ]; + }; + }).override { + buildInputs = [ cmake jsoncpp libhdhomerun kodi libcec_platform kodi-platform ]; + + # disables check ensuring install prefix is that of kodi + cmakeFlags = [ "-DOVERRIDE_PATHS=1" ]; + + # kodi checks for plugin .so libs existance in the addon folder (share/...) + # and the non-wrapped kodi lib/... folder before even trying to dlopen + # them. Symlinking .so, as setting LD_LIBRARY_PATH is of no use + installPhase = '' + make install + ln -s $out/lib/addons/pvr.hdhomerun/pvr.hdhomerun.so* $out/share/kodi/addons/pvr.hdhomerun + ''; + }; } |