3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #153185 from jfly/easier-kodi-addon-patching-plus-fix-bug-in-youtube-kodi-addon

Easier kodi addon patching + fix bug in youtube kodi addon
This commit is contained in:
Aaron Andersen 2022-01-02 12:07:54 -05:00 committed by GitHub
commit 76ecba0adb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ lib, buildKodiAddon, fetchzip, addonUpdateScript, six, requests, inputstreamhelper }:
{ lib, buildKodiAddon, fetchpatch, fetchzip, addonUpdateScript, six, requests, inputstreamhelper }:
buildKodiAddon rec {
pname = "youtube";
@ -23,6 +23,15 @@ buildKodiAddon rec {
};
};
patches = [
# This patch can be removed once https://github.com/anxdpanic/plugin.video.youtube/pull/260 has been merged.
(fetchpatch {
name = "fix-addon-path";
url = "https://patch-diff.githubusercontent.com/raw/anxdpanic/plugin.video.youtube/pull/260.patch";
sha256 = "11c9sfwl5kvfll2jws5b4i46s60v6gkfns4al13p4m5ch9rk06hs";
})
];
meta = with lib; {
homepage = "https://github.com/anxdpanic/plugin.video.youtube";
description = "YouTube is one of the biggest video-sharing websites of the world";

View file

@ -13,7 +13,7 @@ toKodiAddon (stdenv.mkDerivation ({
installPhase = ''
runHook preInstall
cd $src/$sourceDir
cd ./$sourceDir
d=$out${addonDir}/${namespace}
mkdir -p $d
sauce="."