python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / applications / video / kodi / addons / inputstream-adaptive / default.nix
blob73e258f42a1baceb309a6b701a297f753bc7b5a9
2   stdenv,
3   lib,
4   rel,
5   addonDir,
6   buildKodiBinaryAddon,
7   fetchFromGitHub,
8   pugixml,
9   glib,
10   nspr,
11   nss,
12   gtest,
13   rapidjson,
15 let
16   bento4 = fetchFromGitHub {
17     owner = "xbmc";
18     repo = "Bento4";
19     rev = "1.6.0-641-${rel}";
20     sha256 = "sha256-vsFMDzH8JJecYw0qWKGCxnd/m5wn62mCKE2g2HwQhwI=";
21   };
23 buildKodiBinaryAddon rec {
24   pname = "inputstream-adaptive";
25   namespace = "inputstream.adaptive";
26   version = "21.4.6";
28   src = fetchFromGitHub {
29     owner = "xbmc";
30     repo = "inputstream.adaptive";
31     rev = "${version}-${rel}";
32     sha256 = "sha256-ub4ep89datfr8aZLZAfoz7zhOizGFpzgp2PVON6Ptj8=";
33   };
35   extraCMakeFlags = [
36     "-DENABLE_INTERNAL_BENTO4=ON"
37     "-DBENTO4_URL=${bento4}"
38   ];
40   extraNativeBuildInputs = [ gtest ];
42   extraBuildInputs = [
43     pugixml
44     rapidjson
45   ];
47   extraRuntimeDependencies = [
48     glib
49     nspr
50     nss
51     (lib.getLib stdenv.cc.cc)
52   ];
54   extraInstallPhase =
55     let
56       n = namespace;
57     in
58     ''
59       ${lib.optionalString stdenv.hostPlatform.isAarch64 "ln -s $out/lib/addons/${n}/libcdm_aarch64_loader.so $out/${addonDir}/${n}/libcdm_aarch64_loader.so"}
60     '';
62   meta = with lib; {
63     homepage = "https://github.com/xbmc/inputstream.adaptive";
64     description = "Kodi inputstream addon for several manifest types";
65     platforms = platforms.all;
66     license = licenses.gpl2Only;
67     maintainers = teams.kodi.members;
68   };