diff --git a/pkgs/tools/typesetting/tex/texlive/default.nix b/pkgs/tools/typesetting/tex/texlive/default.nix index 36435d58ff42..e2e4be3a0acd 100644 --- a/pkgs/tools/typesetting/tex/texlive/default.nix +++ b/pkgs/tools/typesetting/tex/texlive/default.nix @@ -42,6 +42,7 @@ biber-ms, makeFontsConf, useFixedHashes ? true, + extraMirrors ? [ ], recurseIntoAttrs, nixfmt, }: @@ -115,25 +116,28 @@ let # should be switching to the tlnet-final versions # (https://tug.org/historic/). mirrors = - if version.final then - [ - # 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" - ] - else - [ - # CTAN mirrors - "https://mirror.ctan.org/systems/texlive/tlnet" - # daily snapshots hosted by one of the texlive release managers; - # used for packages that in the meanwhile have been updated or removed from CTAN - # and for packages that have not reached yet the historic mirrors - # please note that this server is not meant for large scale deployment - # https://tug.org/pipermail/tex-live/2019-November/044456.html - # https://texlive.info/ MUST appear last (see tlpdbxz) - "https://texlive.info/tlnet-archive/${version.year}/${version.month}/${version.day}/tlnet" - ]; + extraMirrors + ++ ( + if version.final then + [ + # 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" + ] + else + [ + # CTAN mirrors + "https://mirror.ctan.org/systems/texlive/tlnet" + # daily snapshots hosted by one of the texlive release managers; + # used for packages that in the meanwhile have been updated or removed from CTAN + # and for packages that have not reached yet the historic mirrors + # please note that this server is not meant for large scale deployment + # https://tug.org/pipermail/tex-live/2019-November/044456.html + # https://texlive.info/ MUST appear last (see tlpdbxz) + "https://texlive.info/tlnet-archive/${version.year}/${version.month}/${version.day}/tlnet" + ] + ); tlpdbxz = fetchurl { urls =