From 0cc514472fac619bf4634e99963a474ab628847a Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Thu, 14 Nov 2024 18:04:55 +0100 Subject: [PATCH] invidious: fix playback for proxied video streaming --- pkgs/by-name/in/invidious/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/in/invidious/package.nix b/pkgs/by-name/in/invidious/package.nix index 6157e59d01da5..17ef1504e8058 100644 --- a/pkgs/by-name/in/invidious/package.nix +++ b/pkgs/by-name/in/invidious/package.nix @@ -3,6 +3,7 @@ callPackage, crystal, fetchFromGitHub, + fetchpatch, librsvg, pkg-config, libxml2, @@ -86,6 +87,15 @@ crystal.buildCrystalPackage rec { sqlite ]; + patches = [ + # Fix proxied video streaming: https://github.com/iv-org/invidious/pull/4992 + (fetchpatch { + name = "invidious-fix-video-proxy.patch"; + url = "https://github.com/iv-org/invidious/compare/aa33d9b7ec5a41867c256542653ad8465fe22e7f~1...3ac8978e96069e58a02e91fc29bf52b8fc651d5c.patch"; + hash = "sha256-xENsVRfEE9ACLiniOgGMDfdC0ZtJge1e1Lak2orLJro="; + }) + ]; + format = "crystal"; shardsFile = ./shards.nix; crystalBinaries.invidious = {