mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
58058239d4
I've submitted a PR upstream to address this: https://github.com/anxdpanic/plugin.video.youtube/pull/260, this just pulls the patch in sooner to get things unbroken for Nix users.
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ lib, buildKodiAddon, fetchpatch, fetchzip, addonUpdateScript, six, requests, inputstreamhelper }:
|
|
|
|
buildKodiAddon rec {
|
|
pname = "youtube";
|
|
namespace = "plugin.video.youtube";
|
|
version = "6.8.18+matrix.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://mirrors.kodi.tv/addons/matrix/${namespace}/${namespace}-${version}.zip";
|
|
sha256 = "F950rnE/YxwWI0ieHC2TdGNSfrQDHlStnxLbA6UjEaM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
requests
|
|
inputstreamhelper
|
|
];
|
|
|
|
passthru = {
|
|
pythonPath = "resources/lib";
|
|
updateScript = addonUpdateScript {
|
|
attrPath = "kodi.packages.youtube";
|
|
};
|
|
};
|
|
|
|
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";
|
|
license = licenses.gpl2Only;
|
|
maintainers = teams.kodi.members;
|
|
};
|
|
}
|