Charlotte 🦝 Delenk
2c2e1b7aa0
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
19 lines
586 B
Nix
19 lines
586 B
Nix
{
|
|
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/Maven85/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/Maven85/plugin.video.joyn | ${jq}/bin/jq > packages/kodi/joyn/source.json
|
|
fi
|
|
echo "kodi-joyn: Done"
|
|
''
|