biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / video / kodi / addons / inputstream-adaptive / default.nix
blob1a82cd1c19b9f4c6778b7d6797078afbc44f82a5
1 { stdenv, lib, rel, addonDir, buildKodiBinaryAddon, fetchFromGitHub, pugixml, glib, nspr, nss, gtest, rapidjson }:
2 let
3   bento4 = fetchFromGitHub {
4     owner = "xbmc";
5     repo = "Bento4";
6     rev = "1.6.0-641-${rel}";
7     sha256 = "sha256-vsFMDzH8JJecYw0qWKGCxnd/m5wn62mCKE2g2HwQhwI=";
8   };
9 in
10 buildKodiBinaryAddon rec {
11   pname = "inputstream-adaptive";
12   namespace = "inputstream.adaptive";
13   version = "21.4.6";
15   src = fetchFromGitHub {
16     owner = "xbmc";
17     repo = "inputstream.adaptive";
18     rev = "${version}-${rel}";
19     sha256 = "sha256-ub4ep89datfr8aZLZAfoz7zhOizGFpzgp2PVON6Ptj8=";
20   };
22   extraCMakeFlags = [
23     "-DENABLE_INTERNAL_BENTO4=ON"
24     "-DBENTO4_URL=${bento4}"
25   ];
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
35   '';
37   meta = with lib; {
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;
43   };