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