Merge pull request #108895 from veprbl/pr/texlive_2020_20210109

texlive: 2020.20201009 -> 2020.20210109
This commit is contained in:
Dmitry Kalinkin 2021-01-12 09:20:35 -05:00 committed by GitHub
commit 4faa65a09c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2424 additions and 1889 deletions

View File

@ -1,7 +1,21 @@
{ lib, stdenv, fetchpatch, perlPackages, shortenPerlShebang, texlive }:
{ lib, stdenv, fetchurl, fetchpatch, perlPackages, shortenPerlShebang, texlive }:
let
biberSource = stdenv.lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs);
# perl 5.32.0 ships with U:C 1.27
UnicodeCollate_1_29 = perlPackages.buildPerlPackage rec {
pname = "Unicode-Collate";
version = "1.29";
src = fetchurl {
url = "mirror://cpan/authors/id/S/SA/SADAHIRO/${pname}-${version}.tar.gz";
sha256 = "0dr4k10fgbsczh4sz7w8d0nnba38r6jrg87cm3gw4xxgn55fzj7l";
};
meta = {
description = "Unicode Collation Algorithm";
license = perlPackages.perl.meta.license;
};
};
in
perlPackages.buildPerlModule {
@ -10,21 +24,13 @@ perlPackages.buildPerlModule {
src = "${biberSource}/source/bibtex/biber/biblatex-biber.tar.gz";
patches = [
# Fix for https://github.com/plk/biber/issues/329
(fetchpatch {
url = "https://github.com/plk/biber/commit/fa312ce402fe581ba7cc0890c83a1d47c2610e26.diff";
sha256 = "1j87mdwvx368z9b5x6b72s753hwvrldf2pb42p6hflq5hzkicy50";
})
];
buildInputs = with perlPackages; [
autovivification BusinessISBN BusinessISMN BusinessISSN ConfigAutoConf
DataCompare DataDump DateSimple EncodeEUCJPASCII EncodeHanExtra EncodeJIS2K
DateTime DateTimeFormatBuilder DateTimeCalendarJulian
ExtUtilsLibBuilder FileSlurper FileWhich IPCRun3 LogLog4perl LWPProtocolHttps ListAllUtils
ListMoreUtils MozillaCA ParseRecDescent IOString ReadonlyXS RegexpCommon TextBibTeX
UnicodeLineBreak URI XMLLibXMLSimple XMLLibXSLT XMLWriter
UnicodeCollate_1_29 UnicodeLineBreak URI XMLLibXMLSimple XMLLibXSLT XMLWriter
ClassAccessor TextCSV TextCSV_XS TextRoman DataUniqid LinguaTranslit SortKey
TestDifferences
PerlIOutf8_strict

View File

@ -2,10 +2,12 @@ params: with params;
# combine =
args@{
pkgFilter ? (pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "core")
, extraName ? "combined", ...
, extraName ? "combined"
, extraVersion ? ""
, ...
}:
let
pkgSet = removeAttrs args [ "pkgFilter" "extraName" ] // {
pkgSet = removeAttrs args [ "pkgFilter" "extraName" "extraVersion" ] // {
# include a fake "core" package
core.pkgs = [
(bin.core.out // { pname = "core"; tlType = "bin"; })
@ -37,7 +39,7 @@ let
(map (p: p.outPath) (builtins.filter lib.isDerivation pkgs));
in (buildEnv {
name = "texlive-${extraName}-${bin.texliveYear}";
name = "texlive-${extraName}-${bin.texliveYear}${extraVersion}";
extraPrefix = "/share/texmf";

View File

@ -88,6 +88,12 @@ let
++ combinePkgs (attrs.deps or {});
};
snapshot = {
year = "2021";
month = "01";
day = "09";
};
# create a derivation that contains an unpacked upstream TL package
mkPkg = { pname, tlType, revision, version, sha512, postUnpack ? "", stripPrefix ? 1, ... }@args:
let
@ -110,7 +116,7 @@ let
#"ftp://tug.org/texlive/historic/2019/tlnet-final/archive"
# Daily snapshots hosted by one of the texlive release managers
https://texlive.info/tlnet-archive/2020/10/09/tlnet/archive
"https://texlive.info/tlnet-archive/${snapshot.year}/${snapshot.month}/${snapshot.day}/tlnet/archive"
];
src = fetchurl { inherit urls sha512; };
@ -174,6 +180,7 @@ in
(combine {
${pname} = attrs;
extraName = "combined" + lib.removePrefix "scheme" pname;
extraVersion = ".${snapshot.year}${snapshot.month}${snapshot.day}";
})
)
{ inherit (tl)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff