1 { stdenv, lib, rel, addonDir, buildKodiBinaryAddon, fetchFromGitHub, pugixml, glib, nspr, nss, gtest, rapidjson }:
3 bento4 = fetchFromGitHub {
6 rev = "1.6.0-641-${rel}";
7 sha256 = "sha256-vsFMDzH8JJecYw0qWKGCxnd/m5wn62mCKE2g2HwQhwI=";
10 buildKodiBinaryAddon rec {
11 pname = "inputstream-adaptive";
12 namespace = "inputstream.adaptive";
15 src = fetchFromGitHub {
17 repo = "inputstream.adaptive";
18 rev = "${version}-${rel}";
19 sha256 = "sha256-ub4ep89datfr8aZLZAfoz7zhOizGFpzgp2PVON6Ptj8=";
23 "-DENABLE_INTERNAL_BENTO4=ON"
24 "-DBENTO4_URL=${bento4}"
27 extraNativeBuildInputs = [ gtest ];
29 extraBuildInputs = [ pugixml rapidjson ];
31 extraRuntimeDependencies = [ glib nspr nss stdenv.cc.cc.lib ];
33 extraInstallPhase = let n = namespace; in ''
34 ln -s $out/lib/addons/${n}/libssd_wv.so $out/${addonDir}/${n}/libssd_wv.so
38 homepage = "https://github.com/xbmc/inputstream.adaptive";
39 description = "Kodi inputstream addon for several manifest types";
40 platforms = platforms.all;
41 license = licenses.gpl2Only;
42 maintainers = teams.kodi.members;