nixpkgs/pkgs/applications/video/kodi/addons/inputstream-adaptive/default.nix
Fernando Rodrigues 05580f4b44
treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00

69 lines
1.4 KiB
Nix

{
stdenv,
lib,
rel,
addonDir,
buildKodiBinaryAddon,
fetchFromGitHub,
pugixml,
glib,
nspr,
nss,
gtest,
rapidjson,
}:
let
bento4 = fetchFromGitHub {
owner = "xbmc";
repo = "Bento4";
tag = "1.6.0-641-3-${rel}";
hash = "sha256-ycWQvXgr1DQ3Wng73S8i6y6XmcUD/iN8OKfO1czgsnY=";
};
in
buildKodiBinaryAddon rec {
pname = "inputstream-adaptive";
namespace = "inputstream.adaptive";
version = "21.5.9";
src = fetchFromGitHub {
owner = "xbmc";
repo = "inputstream.adaptive";
tag = "${version}-${rel}";
hash = "sha256-OArvp/MgJGsRs3Z59JfgOkfwyhQ3ArC1yf37z7Y7khg=";
};
extraCMakeFlags = [
"-DENABLE_INTERNAL_BENTO4=ON"
"-DBENTO4_URL=${bento4}"
];
extraNativeBuildInputs = [ gtest ];
extraBuildInputs = [
pugixml
rapidjson
];
extraRuntimeDependencies = [
glib
nspr
nss
(lib.getLib stdenv.cc.cc)
];
extraInstallPhase =
let
n = namespace;
in
''
${lib.optionalString stdenv.hostPlatform.isAarch64 "ln -s $out/lib/addons/${n}/libcdm_aarch64_loader.so $out/${addonDir}/${n}/libcdm_aarch64_loader.so"}
'';
meta = with lib; {
homepage = "https://github.com/xbmc/inputstream.adaptive";
description = "Kodi inputstream addon for several manifest types";
platforms = platforms.all;
license = licenses.gpl2Only;
teams = [ teams.kodi ];
};
}