diff --git a/pkgs/build-support/fetchurl/mirrors.nix b/pkgs/build-support/fetchurl/mirrors.nix index f9f5b25557d2..5d7ebc7cd87b 100644 --- a/pkgs/build-support/fetchurl/mirrors.nix +++ b/pkgs/build-support/fetchurl/mirrors.nix @@ -332,6 +332,17 @@ "https://test.pypi.io/packages/source/" ]; + # TeX historic archive (see https://tug.org/historic/) + texhistoric = [ + "https://ftp.math.utah.edu/pub/tex/historic/" + "https://texlive.info/historic/" + "https://ftp.tu-chemnitz.de/pub/tug/historic/" + "https://pi.kwarc.info/historic/" + "https://mirrors.tuna.tsinghua.edu.cn/tex-historic-archive/" + "https://mirror.nju.edu.cn/tex-historic/" + "ftp://tug.org/texlive/historic/" + ]; + ### Linux distros # CentOS diff --git a/pkgs/tools/typesetting/tex/texlive/bin.nix b/pkgs/tools/typesetting/tex/texlive/bin.nix index e115c7d436a2..c41fa32391ae 100644 --- a/pkgs/tools/typesetting/tex/texlive/bin.nix +++ b/pkgs/tools/typesetting/tex/texlive/bin.nix @@ -143,10 +143,7 @@ let common = { # initial TeX Live 2025 release # src = fetchurl { - # urls = [ - # "http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/${year}/texlive-${year}0308-source.tar.xz" - # "ftp://tug.ctan.org/pub/tex/historic/systems/texlive/${year}/texlive-${year}0308-source.tar.xz" - # ]; + # url = "mirror://texhistoric/systems/texlive/${year}/texlive-${year}0308-source.tar.xz"; # hash = "sha256-//2xo9FDwXekOYoiKaQNaojxgJjl9tz9V2SMnyQXSQ8="; # }; diff --git a/pkgs/tools/typesetting/tex/texlive/default.nix b/pkgs/tools/typesetting/tex/texlive/default.nix index c819f4b32112..092d41f98e5e 100644 --- a/pkgs/tools/typesetting/tex/texlive/default.nix +++ b/pkgs/tools/typesetting/tex/texlive/default.nix @@ -156,8 +156,7 @@ let [ # tlnet-final snapshot; used when texlive.tlpdb is frozen # the TeX Live yearly freeze typically happens in mid-March - "http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/${toString version.texliveYear}/tlnet-final" - "ftp://tug.org/texlive/historic/${toString version.texliveYear}/tlnet-final" + "mirror://texhistoric/systems/texlive/${toString version.texliveYear}/tlnet-final" ] else [