get the joyn plugin to work
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 packages.riscv64-linux.package-updater Hydra build #25374 of nixos-config:pr618:packages.riscv64-linux.package-updater
Hydra nixosConfigurations.pc-installer Hydra build #25369 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.rainbow-resort Hydra build #25370 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.not522-installer Hydra build #25368 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.thinkrac Hydra build #25371 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra packages.aarch64-linux.kodi-joyn Hydra build #25372 of nixos-config:pr618:packages.aarch64-linux.kodi-joyn
Hydra nixosConfigurations.not522 Hydra build #25367 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #25277 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra packages.aarch64-linux.package-updater Hydra build #25373 of nixos-config:pr618:packages.aarch64-linux.package-updater
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.art-lotte-bgs-sfw Hydra build #25285 of nixos-config:pr618:packages.aarch64-linux.art-lotte-bgs-sfw
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.kodi-joyn Hydra build #25375 of nixos-config:pr618:packages.x86_64-linux.kodi-joyn
Hydra packages.x86_64-linux.package-updater Hydra build #25376 of nixos-config:pr618:packages.x86_64-linux.package-updater
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-13 10:35:15 +01:00
parent 46fea2c34a
commit 2c2e1b7aa0
11 changed files with 11 additions and 102 deletions

View file

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

View file

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

View file

@ -3,7 +3,6 @@
fetchFromGitHub, fetchFromGitHub,
inputstream-adaptive, inputstream-adaptive,
inputstreamhelper, inputstreamhelper,
kodi-pydes,
lib, lib,
simplejson, simplejson,
}: }:
@ -15,17 +14,16 @@ buildKodiAddon {
namespace = "plugin.video.joyn"; namespace = "plugin.video.joyn";
version = "2.3.1.10"; version = "2.3.1.10";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "knaerzche"; owner = "Maven85";
repo = "plugin.video.joyn"; repo = "plugin.video.joyn";
inherit (srcInfo) rev sha256; inherit (srcInfo) rev sha256;
}; };
postPatch = '' preFixup = ''
substituteInPlace --replace '2.26.0' '3.0.0' addon.xml substituteInPlace $out/share/kodi/addons/plugin.video.joyn/addon.xml --replace-fail '2.26.0' '3.0.0'
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
inputstream-adaptive inputstream-adaptive
inputstreamhelper inputstreamhelper
kodi-pydes
simplejson simplejson
]; ];
meta = { meta = {

View file

@ -1,10 +1,10 @@
{ {
"url": "https://github.com/knaerzche/plugin.video.joyn", "url": "https://github.com/Maven85/plugin.video.joyn",
"rev": "0954c40d20fe4c956c45519993f0dfdc0debade2", "rev": "a74a0901d55c47ca0269fd85dc2f267c41570e00",
"date": "2020-09-04T17:17:52+02:00", "date": "2024-11-13T09:07:18+01:00",
"path": "/nix/store/1c49y966arnakcna3nb55fpfik0rsysq-plugin.video.joyn", "path": "/nix/store/q5x2msdzl377yribfa5a86vrdl1cbl4d-plugin.video.joyn",
"sha256": "1wkn03j0mwlbnnl0zzr74pw3z4z2r76130rana7jdmc79fqxld53", "sha256": "00y4p9pqd1x67jc0356bm9ynkml9qnggqyylzm6mckk44i1ixqh1",
"hash": "sha256-ozTasUuH1SaPsiqDEczJ4pM/+CUn/w+otYvyCuQAdvI=", "hash": "sha256-AeIeQyRkTlZN/dR7/J7FidZpfarLlAGYPKaHhm+6xAM=",
"fetchLFS": false, "fetchLFS": false,
"fetchSubmodules": false, "fetchSubmodules": false,
"deepClone": false, "deepClone": false,

View file

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

View file

@ -1,15 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.pydes" name="pyDes" version="2.0.1" provider-name="Todd Whiteman">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
</requires>
<extension point="xbmc.python.module"
library="lib" />
<extension point="xbmc.addon.metadata">
<summary lang="en">A pure python module which implements the DES and Triple-DES encryption algorithms.</summary>
<website>http://twhiteman.netfirms.com/des.html</website>
<license>MIT</license>
<platform>all</platform>
<source>http://sourceforge.net/projects/pydes/</source>
</extension>
</addon>

View file

@ -1,11 +0,0 @@
{ callPackage, buildKodiAddon }:
let
src = callPackage ./source.nix { };
in
buildKodiAddon {
pname = "pyDes";
namespace = "script.module.pydes";
version = "2.0.1";
inherit src;
inherit (src) meta;
}

View file

@ -1,12 +0,0 @@
{
"url": "https://github.com/twhiteman/pyDes",
"rev": "e988a5ffc9abb8010fc75dba54904d1c5dbe83db",
"date": "2019-01-07T17:12:32-08:00",
"path": "/nix/store/avhx558pnxzlzl4ww1xrzkl08qcp19pm-pyDes",
"sha256": "0sic8wbyk5azb4d4m6zbc96lfqcw8s2pzcv9nric5yqc751613ww",
"hash": "sha256-nI9gQjkM+8Jitmmzf4VGnGFHTWLrm0oaWV+V6RdHLGo=",
"fetchLFS": false,
"fetchSubmodules": false,
"deepClone": false,
"leaveDotGit": false
}

View file

@ -1,29 +0,0 @@
{
stdenvNoCC,
fetchFromGitHub,
lib,
}:
let
srcInfo = lib.importJSON ./source.json;
src = fetchFromGitHub {
owner = "twhiteman";
repo = "pyDes";
inherit (srcInfo) rev sha256;
};
in
stdenvNoCC.mkDerivation {
pname = "kodi-pydes";
version = srcInfo.date;
inherit src;
dontUnpack = true;
dontBuild = true;
installPhase = ''
mkdir -p $out/lib
cp $src/pyDes.py $out/lib
cp ${./addon.xml} $out/addon.xml
'';
meta = {
license = lib.licenses.mit;
description = "A pure python module which implements the DES and Triple-DES encryption algorithms.";
};
}

View file

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

View file

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