feat(host/cerithium-telescopium): update youtube + netflix, drop rtlplus

This commit is contained in:
Malte Tammena 2024-03-10 19:32:45 +01:00
parent d008138896
commit 121e07c127
2 changed files with 16 additions and 41 deletions

View file

@ -14,17 +14,9 @@
hash = "sha256-nCOH+48w7nEm7mXXPCsDuaRlId2hNyYdV01IbVNWuME=";
};
pexel-bg.hash = "sha256-Su2UwFpZKj5sa80UrcDSX9O2GuVI6XR2gSLpp4gJZP0=";
REpo-AiO = {
rev = "c88a6de";
hash = "sha256-3FeMPAMXvVwbQXmjz6HYo5QAbrI4x3mkVNTLIco56K4=";
};
rtlGroupPlugin = {
hash = "sha256-tknTHae9dRQ1oO8rtgqSzxC7DzbVHa2VhbddWBqNVOI=";
version = "1.1.6";
};
netflixPlugin = {
version = "1.22.3";
hash = "sha256-8NGj8n1p8euqYYdPDSeFh2ZE9lly5ThSmg69yXY3Te8=";
youtubePlugin = {
hash = "sha256-gJ7RGB0pSG/iLdpmXHpQOoQTisXnMl1Mgd0KYFgg2qI=";
version = "7.0.3.2";
};
darkman = {
version = "1.5.4-with-bash-fix";

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
lib,
...
}: {
imports = [
../../hardware/intel-nuc.nix
];
@ -22,43 +26,22 @@
/run/current-system/sw/bin/xset s off
'';
services.xserver.desktopManager.kodi.package = let
REpo-AiO = pkgs.fetchFromGitHub {
owner = "Collabsvito";
repo = "REpo-AiO";
inherit (hashes.REpo-AiO) rev hash;
};
youtubePlugin = pkgs.kodiPackages.youtube.overrideAttrs (old: rec {
version = lib.throwIf (lib.versionOlder hashes.youtubePlugin.version old.version) "Youtube Plugin override outdated" hashes.youtubePlugin.version;
rtlGroupPlugin = pkgs.kodiPackages.buildKodiAddon rec {
pname = "rtl+";
namespace = "plugin.video.rtlgroup.de";
version = hashes.rtlGroupPlugin.version;
src = pkgs.fetchzip {
url = "file://${REpo-AiO}/MATRIX/${namespace}/${namespace}-${version}+matrix.1.zip";
hash = hashes.rtlGroupPlugin.hash;
};
patchPhase = ''
sed 's/Cryptodome/Crypto/g' -i resources/lib/common.py
'';
};
netflixPlugin = pkgs.kodiPackages.netflix.overrideAttrs rec {
inherit (hashes.netflixPlugin) version;
src = pkgs.fetchFromGitHub {
owner = "CastagnaIT";
repo = "plugin.video.netflix";
inherit (hashes.youtubePlugin) hash;
owner = "anxdpanic";
repo = "plugin.video.youtube";
rev = "v${version}";
inherit (hashes.netflixPlugin) hash;
};
};
});
in
pkgs.kodi.passthru.withPackages (kodiPkgs:
with kodiPkgs; [
youtube
youtubePlugin
inputstream-adaptive
rtlGroupPlugin
netflixPlugin
netflix
joystick
# Amazon VOD
# Arte Mediathek