From 77456b834919be3e6e8ed00bd26eebd32046dc8e Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> Date: Sat, 9 May 2026 20:06:06 +0100 Subject: [PATCH 1/2] fetchurl: add TeX historic archive mirrors --- pkgs/build-support/fetchurl/mirrors.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 From 46ca66150d29182bd104093ad4b942eec25e0526 Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> Date: Sat, 9 May 2026 20:06:07 +0100 Subject: [PATCH 2/2] texlive: use texhistoric mirror list --- pkgs/tools/typesetting/tex/texlive/bin.nix | 5 +---- pkgs/tools/typesetting/tex/texlive/default.nix | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/typesetting/tex/texlive/bin.nix b/pkgs/tools/typesetting/tex/texlive/bin.nix index 371f34a3bd0c..8fefe065f759 100644 --- a/pkgs/tools/typesetting/tex/texlive/bin.nix +++ b/pkgs/tools/typesetting/tex/texlive/bin.nix @@ -141,10 +141,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 c1b23064f3ed..aa37fceca8d1 100644 --- a/pkgs/tools/typesetting/tex/texlive/default.nix +++ b/pkgs/tools/typesetting/tex/texlive/default.nix @@ -154,8 +154,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 [