add kodi joyn addon
Some checks failed
Hydra packages.riscv64-linux.art-lotte Hydra build #25287 of nixos-config:pr618:packages.riscv64-linux.art-lotte
Hydra packages.aarch64-linux.art-lotte Hydra build #25283 of nixos-config:pr618:packages.aarch64-linux.art-lotte
Hydra packages.x86_64-linux.art-lotte-bgs-sfw Hydra build #25293 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-sfw
Hydra checks.x86_64-linux.containers-default Hydra build #25274 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra packages.x86_64-linux.art-lotte-bgs-nsfw Hydra build #25292 of nixos-config:pr618:packages.x86_64-linux.art-lotte-bgs-nsfw
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #25277 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #25276 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra packages.riscv64-linux.art-lotte-bgs-sfw Hydra build #25289 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-sfw
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #25275 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra packages.aarch64-linux.art-lotte-bgs-nsfw Hydra build #25284 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-nsfw
Hydra packages.aarch64-linux.package-updater Hydra build #25330 of nixos-config:pr618:packages.aarch64-linux.package-updater
Hydra packages.x86_64-linux.package-updater Hydra build #25335 of nixos-config:pr618:packages.x86_64-linux.package-updater
Hydra packages.x86_64-linux.kodi-pydes Hydra build #25334 of nixos-config:pr618:packages.x86_64-linux.kodi-pydes
Hydra packages.x86_64-linux.kodi-joyn Hydra build #25333 of nixos-config:pr618:packages.x86_64-linux.kodi-joyn
Hydra nixosConfigurations.not522-installer Hydra build #25324 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.not522 Hydra build #25323 of nixos-config:pr618:nixosConfigurations.not522
Hydra packages.aarch64-linux.art-lotte-bgs-sfw Hydra build #25285 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-sfw
Hydra packages.riscv64-linux.package-updater Hydra build #25332 of nixos-config:pr618:packages.riscv64-linux.package-updater
Hydra packages.riscv64-linux.kodi-pydes Hydra build #25331 of nixos-config:pr618:packages.riscv64-linux.kodi-pydes
Hydra nixosConfigurations.thinkrac Hydra build #25327 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra packages.aarch64-linux.kodi-pydes Hydra build #25329 of nixos-config:pr618:packages.aarch64-linux.kodi-pydes
Hydra packages.aarch64-linux.kodi-joyn Hydra build #25328 of nixos-config:pr618:packages.aarch64-linux.kodi-joyn
Hydra nixosConfigurations.rainbow-resort Hydra build #25326 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.pc-installer Hydra build #25325 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra packages.riscv64-linux.art-lotte-bgs-nsfw Hydra build #25288 of nixos-config:pr618:packages.riscv64-linux.art-lotte-bgs-nsfw
Hydra packages.x86_64-linux.art-lotte Hydra build #25291 of nixos-config:pr618:packages.x86_64-linux.art-lotte

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-12 16:25:08 +01:00
parent b29fd0dbbe
commit 9f8015564f
7 changed files with 70 additions and 1 deletions

View file

@ -252,6 +252,7 @@
art-lotte
art-lotte-bgs-nsfw
art-lotte-bgs-sfw
kodi-joyn
kodi-pydes
package-updater
;

View file

@ -2,6 +2,7 @@ self: super: {
art-lotte = self.callPackage ./art/lotte { };
art-lotte-bgs-nsfw = self.callPackage ./art/lotte/bgs-nsfw.nix { };
art-lotte-bgs-sfw = self.callPackage ./art/lotte/bgs-sfw.nix { };
kodi-joyn = self.kodiPackages.callPackage ./kodi/joyn { };
kodi-pydes = self.kodiPackages.callPackage ./kodi/pydes { };
package-updater = self.callPackage ./updater.nix { };
}

View file

@ -0,0 +1,32 @@
{
buildKodiAddon,
fetchFromGitHub,
inputstream-adaptive,
inputstreamhelper,
kodi-pydes,
lib,
simplejson,
}:
let
srcInfo = lib.importJSON ./source.json;
in
buildKodiAddon {
pname = "Joyn";
namespace = "plugin.video.joyn";
version = "2.3.1.10";
src = fetchFromGitHub {
owner = "knaerzche";
repo = "plugin.video.joyn";
inherit (srcInfo) rev sha256;
};
propagatedBuildInputs = [
inputstream-adaptive
inputstreamhelper
kodi-pydes
simplejson
];
meta = {
license = lib.licenses.gpl2;
description = "Watch VOD content und Live TV provided by Joyn";
};
}

View file

@ -0,0 +1,12 @@
{
"url": "https://github.com/knaerzche/plugin.video.joyn",
"rev": "0954c40d20fe4c956c45519993f0dfdc0debade2",
"date": "2020-09-04T17:17:52+02:00",
"path": "/nix/store/1c49y966arnakcna3nb55fpfik0rsysq-plugin.video.joyn",
"sha256": "1wkn03j0mwlbnnl0zzr74pw3z4z2r76130rana7jdmc79fqxld53",
"hash": "sha256-ozTasUuH1SaPsiqDEczJ4pM/+CUn/w+otYvyCuQAdvI=",
"fetchLFS": false,
"fetchSubmodules": false,
"deepClone": false,
"leaveDotGit": false
}

View file

@ -0,0 +1,19 @@
{
nix-prefetch-git,
curl,
jq,
lib,
}:
let
srcInfo = lib.importJSON ./source.json;
in
''
echo "kodi-joyn: Checking for updates"
CURRENT_COMMIT=$(${curl}/bin/curl https://api.github.com/repos/knaerzche/plugin.video.joyn/commits | ${jq}/bin/jq -r '.[0].sha')
KNOWN_COMMIT=${srcInfo.rev}
if [ $CURRENT_COMMIT != $KNOWN_COMMIT ]; then
echo "kodi-joyn: Updating from $KNOWN_COMMIT to $CURRENT_COMMIT"
${nix-prefetch-git}/bin/nix-prefetch-git https://github.com/knaerzche/plugin.video.joyn | ${jq}/bin/jq > packages/kodi/joyn/source.json
fi
echo "kodi-joyn: Done"
''

View file

@ -2,4 +2,7 @@
lib,
callPackage,
}:
lib.concatMapStringsSep "\n" (f: callPackage "${f}/updater.nix" { }) [ ./pydes ]
lib.concatMapStringsSep "\n" (f: callPackage "${f}/updater.nix" { }) [
./joyn
./pydes
]

View file

@ -9,6 +9,7 @@
kodiPkgs: with kodiPkgs; [
jellyfin
jellycon
pkgs.kodi-joyn
]
))
];