mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
kodiPlugins.inputstream-adaptive: init at 2.3.12
This commit is contained in:
parent
bcb57f6c57
commit
6307e2b00f
@ -1,7 +1,7 @@
|
||||
{ stdenv, callPackage, fetchurl, fetchFromGitHub, unzip
|
||||
, cmake, kodiPlain, libcec_platform, tinyxml
|
||||
, steam, libusb, pcre-cpp, jsoncpp, libhdhomerun, zlib
|
||||
, python2Packages }:
|
||||
, python2Packages, expat, glib, nspr, nss }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
@ -64,7 +64,8 @@ let self = rec {
|
||||
'';
|
||||
} // args));
|
||||
|
||||
mkKodiABIPlugin = { plugin, namespace, version, extraBuildInputs ? [], ... }@args:
|
||||
mkKodiABIPlugin = { plugin, namespace, version, extraBuildInputs ? [],
|
||||
extraRuntimeDependencies ? [], extraInstallPhase ? "", ... }@args:
|
||||
toKodiPlugin (stdenv.mkDerivation (rec {
|
||||
name = "kodi-plugin-${plugin}-${version}";
|
||||
|
||||
@ -84,6 +85,7 @@ let self = rec {
|
||||
installPhase = let n = namespace; in ''
|
||||
make install
|
||||
ln -s $out/lib/addons/${n}/${n}.so.${version} $out${pluginDir}/${n}/${n}.so.${version}
|
||||
${extraInstallPhase}
|
||||
'';
|
||||
} // args));
|
||||
|
||||
@ -470,4 +472,33 @@ let self = rec {
|
||||
};
|
||||
});
|
||||
|
||||
inputstream-adaptive = mkKodiABIPlugin rec {
|
||||
|
||||
plugin = "inputstream-adaptive";
|
||||
namespace = "inputstream.adaptive";
|
||||
version = "2.3.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "peak3d";
|
||||
repo = "inputstream.adaptive";
|
||||
rev = "${version}";
|
||||
sha256 = "09d9b35mpaf3g5m51viyan9hv7d2i8ndvb9wm0j7rs5gwsf0k71z";
|
||||
};
|
||||
|
||||
extraBuildInputs = [ expat ];
|
||||
|
||||
extraRuntimeDependencies = [ glib nspr nss stdenv.cc.cc.lib ];
|
||||
|
||||
extraInstallPhase = let n = namespace; in ''
|
||||
ln -s $out/lib/addons/${n}/libssd_wv.so $out/${pluginDir}/${n}/libssd_wv.so
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/peak3d/inputstream.adaptive;
|
||||
description = "Kodi inputstream addon for several manifest types";
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ sephalon ];
|
||||
};
|
||||
};
|
||||
|
||||
}; in self
|
||||
|
@ -14,7 +14,10 @@ buildEnv {
|
||||
do
|
||||
makeWrapper ${kodi}/bin/$exe $out/bin/$exe \
|
||||
--prefix PYTHONPATH : ${kodi.pythonPackages.makePythonPath plugins} \
|
||||
--prefix KODI_HOME : $out/share/kodi
|
||||
--prefix KODI_HOME : $out/share/kodi \
|
||||
--prefix LD_LIBRARY_PATH ":" "${lib.makeLibraryPath
|
||||
(stdenv.lib.concatMap
|
||||
(plugin: plugin.extraRuntimeDependencies) plugins)}"
|
||||
done
|
||||
'';
|
||||
|
||||
|
@ -20128,6 +20128,7 @@ in
|
||||
++ optional (config.kodi.enablePVRHTS or false) pvr-hts
|
||||
++ optional (config.kodi.enablePVRHDHomeRun or false) pvr-hdhomerun
|
||||
++ optional (config.kodi.enablePVRIPTVSimple or false) pvr-iptvsimple
|
||||
++ optional (config.kodi.enableInputStreamAdaptive or false) inputstream-adaptive
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user