invidious: fetch self-hosted sources

Switch to self-hosted Gitea instance to counter lawfare attacks.
https://github.com/iv-org/invidious/issues/3872
This commit is contained in:
Emery Hemingway 2023-06-10 10:35:24 +01:00
parent 5e871d8aa6
commit 4b21a20d82

View File

@ -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;