From 4b21a20d8281c66045610a6f725031cf5773d0e3 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sat, 10 Jun 2023 10:35:24 +0100 Subject: [PATCH] invidious: fetch self-hosted sources Switch to self-hosted Gitea instance to counter lawfare attacks. https://github.com/iv-org/invidious/issues/3872 --- pkgs/servers/invidious/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/invidious/default.nix b/pkgs/servers/invidious/default.nix index d6d9ec17363e..7efeb5d9c39d 100644 --- a/pkgs/servers/invidious/default.nix +++ b/pkgs/servers/invidious/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, crystal, fetchFromGitHub, librsvg, pkg-config, libxml2, openssl, shards, sqlite, lsquic, videojs, nixosTests }: +{ lib, stdenv, crystal, fetchFromGitea, librsvg, pkg-config, libxml2, openssl, shards, sqlite, lsquic, videojs, nixosTests }: let # All versions, revisions, and checksums are stored in ./versions.json. # The update process is the following: @@ -18,7 +18,8 @@ crystal.buildCrystalPackage rec { pname = "invidious"; inherit (versions.invidious) version; - src = fetchFromGitHub { + src = fetchFromGitea { + domain = "gitea.invidious.io"; owner = "iv-org"; repo = pname; fetchSubmodules = true;