From 314563efb239a0bfffb02297c2583d9a61449ebc Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 1 Apr 2024 10:20:50 -0600 Subject: [PATCH] overlays/invidious: add patch #4552 --- overlays/default.nix | 2 ++ overlays/invidious.nix | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 overlays/invidious.nix diff --git a/overlays/default.nix b/overlays/default.nix index 3a48e37..b40aabe 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -6,11 +6,13 @@ let inherit (xinlib) prIsOpen; matrix-synapse-unwrapped = prIsOpen.overlay 0 (import ./matrix-synapse.nix); heisenbridge = prIsOpen.overlay 0 (import ./heisenbridge.nix); + invidious = prIsOpen.overlay 0 (import ./invidious.nix); in { nixpkgs.overlays = [ heisenbridge matrix-synapse-unwrapped ] ++ (if isUnstable then [ + invidious ] else [ ]); diff --git a/overlays/invidious.nix b/overlays/invidious.nix new file mode 100644 index 0000000..060b60a --- /dev/null +++ b/overlays/invidious.nix @@ -0,0 +1,14 @@ +let + invidious = _: super: { + invidious = super.invidious.overrideAttrs (_: { + patches = [ + (super.fetchpatch { + name = "fix-fetch"; + url = "https://patch-diff.githubusercontent.com/raw/iv-org/invidious/pull/4552.diff"; + hash = "sha256-uyAsILwxf77OZwJoTkvZ7m79w4WncTAyAr1cZbU6mhM="; + }) + ]; + }); + }; +in +invidious