mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #108895 from veprbl/pr/texlive_2020_20210109
texlive: 2020.20201009 -> 2020.20210109
This commit is contained in:
commit
4faa65a09c
5 changed files with 2424 additions and 1889 deletions
|
@ -1,7 +1,21 @@
|
||||||
{ lib, stdenv, fetchpatch, perlPackages, shortenPerlShebang, texlive }:
|
{ lib, stdenv, fetchurl, fetchpatch, perlPackages, shortenPerlShebang, texlive }:
|
||||||
|
|
||||||
let
|
let
|
||||||
biberSource = stdenv.lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs);
|
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
|
in
|
||||||
|
|
||||||
perlPackages.buildPerlModule {
|
perlPackages.buildPerlModule {
|
||||||
|
@ -10,21 +24,13 @@ perlPackages.buildPerlModule {
|
||||||
|
|
||||||
src = "${biberSource}/source/bibtex/biber/biblatex-biber.tar.gz";
|
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; [
|
buildInputs = with perlPackages; [
|
||||||
autovivification BusinessISBN BusinessISMN BusinessISSN ConfigAutoConf
|
autovivification BusinessISBN BusinessISMN BusinessISSN ConfigAutoConf
|
||||||
DataCompare DataDump DateSimple EncodeEUCJPASCII EncodeHanExtra EncodeJIS2K
|
DataCompare DataDump DateSimple EncodeEUCJPASCII EncodeHanExtra EncodeJIS2K
|
||||||
DateTime DateTimeFormatBuilder DateTimeCalendarJulian
|
DateTime DateTimeFormatBuilder DateTimeCalendarJulian
|
||||||
ExtUtilsLibBuilder FileSlurper FileWhich IPCRun3 LogLog4perl LWPProtocolHttps ListAllUtils
|
ExtUtilsLibBuilder FileSlurper FileWhich IPCRun3 LogLog4perl LWPProtocolHttps ListAllUtils
|
||||||
ListMoreUtils MozillaCA ParseRecDescent IOString ReadonlyXS RegexpCommon TextBibTeX
|
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
|
ClassAccessor TextCSV TextCSV_XS TextRoman DataUniqid LinguaTranslit SortKey
|
||||||
TestDifferences
|
TestDifferences
|
||||||
PerlIOutf8_strict
|
PerlIOutf8_strict
|
||||||
|
|
|
@ -2,10 +2,12 @@ params: with params;
|
||||||
# combine =
|
# combine =
|
||||||
args@{
|
args@{
|
||||||
pkgFilter ? (pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "core")
|
pkgFilter ? (pkg: pkg.tlType == "run" || pkg.tlType == "bin" || pkg.pname == "core")
|
||||||
, extraName ? "combined", ...
|
, extraName ? "combined"
|
||||||
|
, extraVersion ? ""
|
||||||
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
pkgSet = removeAttrs args [ "pkgFilter" "extraName" ] // {
|
pkgSet = removeAttrs args [ "pkgFilter" "extraName" "extraVersion" ] // {
|
||||||
# include a fake "core" package
|
# include a fake "core" package
|
||||||
core.pkgs = [
|
core.pkgs = [
|
||||||
(bin.core.out // { pname = "core"; tlType = "bin"; })
|
(bin.core.out // { pname = "core"; tlType = "bin"; })
|
||||||
|
@ -37,7 +39,7 @@ let
|
||||||
(map (p: p.outPath) (builtins.filter lib.isDerivation pkgs));
|
(map (p: p.outPath) (builtins.filter lib.isDerivation pkgs));
|
||||||
|
|
||||||
in (buildEnv {
|
in (buildEnv {
|
||||||
name = "texlive-${extraName}-${bin.texliveYear}";
|
name = "texlive-${extraName}-${bin.texliveYear}${extraVersion}";
|
||||||
|
|
||||||
extraPrefix = "/share/texmf";
|
extraPrefix = "/share/texmf";
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,12 @@ let
|
||||||
++ combinePkgs (attrs.deps or {});
|
++ combinePkgs (attrs.deps or {});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
snapshot = {
|
||||||
|
year = "2021";
|
||||||
|
month = "01";
|
||||||
|
day = "09";
|
||||||
|
};
|
||||||
|
|
||||||
# create a derivation that contains an unpacked upstream TL package
|
# create a derivation that contains an unpacked upstream TL package
|
||||||
mkPkg = { pname, tlType, revision, version, sha512, postUnpack ? "", stripPrefix ? 1, ... }@args:
|
mkPkg = { pname, tlType, revision, version, sha512, postUnpack ? "", stripPrefix ? 1, ... }@args:
|
||||||
let
|
let
|
||||||
|
@ -110,7 +116,7 @@ let
|
||||||
#"ftp://tug.org/texlive/historic/2019/tlnet-final/archive"
|
#"ftp://tug.org/texlive/historic/2019/tlnet-final/archive"
|
||||||
|
|
||||||
# Daily snapshots hosted by one of the texlive release managers
|
# 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; };
|
src = fetchurl { inherit urls sha512; };
|
||||||
|
@ -174,6 +180,7 @@ in
|
||||||
(combine {
|
(combine {
|
||||||
${pname} = attrs;
|
${pname} = attrs;
|
||||||
extraName = "combined" + lib.removePrefix "scheme" pname;
|
extraName = "combined" + lib.removePrefix "scheme" pname;
|
||||||
|
extraVersion = ".${snapshot.year}${snapshot.month}${snapshot.day}";
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
{ inherit (tl)
|
{ inherit (tl)
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue