texlive: 2018 -> 2019
biber: 2.12 -> 2.13 Vendored potrace was moved from libs/potrace to texk/dvisvgm/dvisvgm-src/libs/potrace. Unfortunately, it is not trivial to remove it from there, so for now dvisvgm seems to be using its vendored dependencies.
This commit is contained in:
parent
93b2d98726
commit
97dbf112b4
@ -10,26 +10,13 @@ perlPackages.buildPerlModule {
|
|||||||
|
|
||||||
src = "${biberSource}/source/bibtex/biber/biblatex-biber.tar.gz";
|
src = "${biberSource}/source/bibtex/biber/biblatex-biber.tar.gz";
|
||||||
|
|
||||||
patches = stdenv.lib.optionals (stdenv.lib.versionAtLeast perlPackages.perl.version "5.30") [
|
# TODO: remove TextBibTeX for biber 2.14: https://github.com/plk/biber/blob/dev/Changes
|
||||||
(fetchpatch {
|
|
||||||
name = "biber-fix-tests.patch";
|
|
||||||
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/biber-fix-tests.patch?h=5d0fffd493550e28b2fb81ad114d62a7c9403812";
|
|
||||||
sha256 = "1ninf46bxf4hm0p5arqbxqyv8r98xdwab34vvp467q1v23kfbhya";
|
|
||||||
})
|
|
||||||
|
|
||||||
(fetchpatch {
|
|
||||||
name = "biber-fix-tests-2.patch";
|
|
||||||
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/biber-fix-tests-2.patch?h=5d0fffd493550e28b2fb81ad114d62a7c9403812";
|
|
||||||
sha256 = "1l8pk454kkm0szxrv9rv9m2a0llw1jm7ffhgpyg4zfiw246n62x0";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
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 ReadonlyXS RegexpCommon TextBibTeX
|
ListMoreUtils MozillaCA IOString ReadonlyXS RegexpCommon TextBibTeX
|
||||||
UnicodeLineBreak URI XMLLibXMLSimple XMLLibXSLT XMLWriter
|
UnicodeLineBreak URI XMLLibXMLSimple XMLLibXSLT XMLWriter
|
||||||
ClassAccessor TextCSV TextCSV_XS TextRoman DataUniqid LinguaTranslit SortKey
|
ClassAccessor TextCSV TextCSV_XS TextRoman DataUniqid LinguaTranslit SortKey
|
||||||
TestDifferences
|
TestDifferences
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl, fetchpatch
|
||||||
, texlive
|
, texlive
|
||||||
, zlib, libiconv, libpng, libX11
|
, zlib, libiconv, libpng, libX11
|
||||||
, freetype, gd, libXaw, icu, ghostscript, libXpm, libXmu, libXext
|
, freetype, gd, libXaw, icu, ghostscript, libXpm, libXmu, libXext
|
||||||
, perl, perlPackages, pkgconfig, autoreconfHook
|
, perl, perlPackages, pkgconfig, autoreconfHook
|
||||||
, poppler, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
|
, poppler, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
|
||||||
, cairo, pixman, xorg, clisp, biber
|
, cairo, pixman, xorg, clisp, biber, xxHash
|
||||||
, makeWrapper, shortenPerlShebang
|
, makeWrapper, shortenPerlShebang
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -14,49 +14,40 @@
|
|||||||
let
|
let
|
||||||
withSystemLibs = map (libname: "--with-system-${libname}");
|
withSystemLibs = map (libname: "--with-system-${libname}");
|
||||||
|
|
||||||
year = "2018";
|
year = "2019";
|
||||||
version = year; # keep names simple for now
|
version = year; # keep names simple for now
|
||||||
|
|
||||||
common = {
|
common = {
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
urls = [
|
urls = [
|
||||||
"http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/${year}/texlive-${year}0414-source.tar.xz"
|
"http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/${year}/texlive-${year}0410-source.tar.xz"
|
||||||
"ftp://tug.ctan.org/pub/tex/historic/systems/texlive/${year}/texlive-${year}0414-source.tar.xz"
|
"ftp://tug.ctan.org/pub/tex/historic/systems/texlive/${year}/texlive-${year}0410-source.tar.xz"
|
||||||
];
|
];
|
||||||
sha256 = "0khyi6h015r2zfqgg0a44a2j7vmr1cy42knw7jbss237yvakc07y";
|
sha256 = "1dfps39q6bdr1zsbp9p74mvalmy3bycihv19sb9c6kg30kprz8nj";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
(fetchurl {
|
] ++ stdenv.lib.optionals (stdenv.lib.versionAtLeast (stdenv.lib.getVersion poppler) "0.76") [
|
||||||
name = "poppler-compat-fixes-up-to-0.70.patch";
|
(fetchpatch {
|
||||||
url = https://git.archlinux.org/svntogit/packages.git/plain/trunk/poppler-compat-fixes-up-to-0.70.patch?h=packages/texlive-bin&id=85ee0539525d8012f134b76c18dfb10d0837a7e2;
|
name = "pdftex-poppler0.76.patch";
|
||||||
sha256 = "0a8bvyl7v6zlyyg3ycl0dmg2g2qahxlq3qmc1nv33r24anzb8xhs";
|
url = "https://git.archlinux.org/svntogit/packages.git/plain/texlive-bin/trunk/pdftex-poppler0.76.patch?id=8cb784073cfd2299a6c301ce7bb0d89126a47f4e";
|
||||||
})
|
sha256 = "04x7myzysranddzjifxhahl7gjy407zkiyzfs5l9cbwzp6pqh7gh";
|
||||||
(fetchurl {
|
|
||||||
name = "luatex-poppler-0.70-const-fixes.patch";
|
includes = [
|
||||||
url = https://git.archlinux.org/svntogit/packages.git/plain/trunk/luatex-poppler-0.70-const-fixes.patch?h=packages/texlive-bin&id=85ee0539525d8012f134b76c18dfb10d0837a7e2;
|
"texk/web2c/pdftexdir/pdftoepdf-poppler0.76.0.cc"
|
||||||
sha256 = "0yiw2x97whdi23dc10xnqpxqj3aja15alir1byp1y03j60zv5n7i";
|
"texk/web2c/pdftexdir/pdftosrc-poppler0.76.0.cc"
|
||||||
})
|
];
|
||||||
(fetchurl {
|
|
||||||
name = "texlive-poppler-0.71.patch";
|
|
||||||
url = https://git.archlinux.org/svntogit/packages.git/plain/trunk/texlive-poppler-0.71.patch?h=packages/texlive-bin&id=85ee0539525d8012f134b76c18dfb10d0837a7e2;
|
|
||||||
sha256 = "164wibyf786gdcb0ij4svsmyi13wvcx0cpdr4flki0lpy3igvlnq";
|
|
||||||
})
|
|
||||||
(fetchurl {
|
|
||||||
name = "synctex-missing-header.patch";
|
|
||||||
url = https://git.archlinux.org/svntogit/packages.git/plain/trunk/synctex-missing-header.patch?h=packages/texlive-bin&id=da56abf0f8a1e85daca0ec0f031b8fa268519e6b;
|
|
||||||
sha256 = "1c4aq8lk8g3mlfq3mdjnxvmhss3qs7nni5rmw0k054dmj6q1xj5n";
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = let
|
||||||
|
popplerSuffix = if (stdenv.lib.versionAtLeast (stdenv.lib.getVersion poppler) "0.76") then "-poppler0.76.0" else "-poppler0.72.0";
|
||||||
|
in ''
|
||||||
for i in texk/kpathsea/mktex*; do
|
for i in texk/kpathsea/mktex*; do
|
||||||
sed -i '/^mydir=/d' "$i"
|
sed -i '/^mydir=/d' "$i"
|
||||||
done
|
done
|
||||||
cp -pv texk/web2c/pdftexdir/pdftoepdf{-poppler0.70.0,}.cc
|
cp -pv texk/web2c/pdftexdir/pdftoepdf{${popplerSuffix},}.cc
|
||||||
cp -pv texk/web2c/pdftexdir/pdftosrc{-newpoppler,}.cc
|
cp -pv texk/web2c/pdftexdir/pdftosrc{${popplerSuffix},}.cc
|
||||||
# fix build with poppler 0.71
|
|
||||||
find texk/web2c/{lua,pdf}texdir -type f | xargs sed -e 's|gTrue|true|g' -e 's|gFalse|false|g' -e 's|GBool|bool|g' -e 's|getCString|c_str|g' -e 's|Gulong|unsigned long|g' -e 's|Guint|unsigned int|g' -e 's|Gushort|unsigned short|g' -e 's|Guchar|unsigned char|g' -i
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# remove when removing synctex-missing-header.patch
|
# remove when removing synctex-missing-header.patch
|
||||||
@ -101,7 +92,7 @@ core = stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
/*teckit*/ zziplib poppler mpfr gmp
|
/*teckit*/ zziplib poppler mpfr gmp
|
||||||
pixman potrace gd freetype libpng libpaper zlib
|
pixman gd freetype libpng libpaper zlib
|
||||||
perl
|
perl
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -109,7 +100,7 @@ core = stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
rm -r libs/{cairo,freetype2,gd,gmp,graphite2,harfbuzz,icu,libpaper,libpng} \
|
rm -r libs/{cairo,freetype2,gd,gmp,graphite2,harfbuzz,icu,libpaper,libpng} \
|
||||||
libs/{mpfr,pixman,poppler,potrace,xpdf,zlib,zziplib}
|
libs/{mpfr,pixman,poppler,xpdf,zlib,zziplib}
|
||||||
mkdir WorkDir
|
mkdir WorkDir
|
||||||
cd WorkDir
|
cd WorkDir
|
||||||
'';
|
'';
|
||||||
@ -199,8 +190,6 @@ core-big = stdenv.mkDerivation { #TODO: upmendex
|
|||||||
++ map (prog: "--disable-${prog}") # don't build things we already have
|
++ map (prog: "--disable-${prog}") # don't build things we already have
|
||||||
[ "tex" "ptex" "eptex" "uptex" "euptex" "aleph" "pdftex"
|
[ "tex" "ptex" "eptex" "uptex" "euptex" "aleph" "pdftex"
|
||||||
"web-progs" "synctex"
|
"web-progs" "synctex"
|
||||||
# build fails on Darwin with luatex53
|
|
||||||
"luatex53" # TODO probably can be removed when TexLive 2019 is out
|
|
||||||
# luajittex is mostly not needed, see:
|
# luajittex is mostly not needed, see:
|
||||||
# http://tex.stackexchange.com/questions/97999/when-to-use-luajittex-in-favour-of-luatex
|
# http://tex.stackexchange.com/questions/97999/when-to-use-luajittex-in-favour-of-luatex
|
||||||
"luajittex" "mfluajit"
|
"luajittex" "mfluajit"
|
||||||
@ -211,8 +200,7 @@ core-big = stdenv.mkDerivation { #TODO: upmendex
|
|||||||
# we use static libtexlua, because it's only used by a single binary
|
# we use static libtexlua, because it's only used by a single binary
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
mkdir ./WorkDir && cd ./WorkDir
|
mkdir ./WorkDir && cd ./WorkDir
|
||||||
# TODO add lua53 here when luatex53 is enabled again
|
for path in libs/{teckit,lua53} texk/web2c; do
|
||||||
for path in libs/{teckit,lua52} texk/web2c; do
|
|
||||||
(
|
(
|
||||||
if [[ "$path" =~ "libs/lua5" ]]; then
|
if [[ "$path" =~ "libs/lua5" ]]; then
|
||||||
extraConfig="--enable-static --disable-shared"
|
extraConfig="--enable-static --disable-shared"
|
||||||
@ -254,12 +242,17 @@ dvisvgm = stdenv.mkDerivation {
|
|||||||
inherit (common) src;
|
inherit (common) src;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ core/*kpathsea*/ ghostscript zlib freetype potrace ];
|
# TODO: dvisvgm still uses vendored dependencies
|
||||||
|
buildInputs = [ core/*kpathsea*/ ghostscript zlib freetype potrace xxHash ];
|
||||||
|
|
||||||
preConfigure = "cd texk/dvisvgm";
|
preConfigure = "cd texk/dvisvgm";
|
||||||
|
|
||||||
|
# configure script has a bug: it refers to $HAVE_LIBGS but sets $have_libgs
|
||||||
|
# TODO: remove for texlive 2020?
|
||||||
|
HAVE_LIBGS = 1;
|
||||||
|
|
||||||
configureFlags = common.configureFlags
|
configureFlags = common.configureFlags
|
||||||
++ [ "--with-system-kpathsea" "--with-system-libgs" ];
|
++ [ "--with-system-kpathsea" ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
};
|
};
|
||||||
@ -271,10 +264,13 @@ dvipng = stdenv.mkDerivation {
|
|||||||
|
|
||||||
inherit (common) src;
|
inherit (common) src;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ perl pkgconfig ];
|
||||||
buildInputs = [ core/*kpathsea*/ zlib libpng freetype gd ghostscript makeWrapper ];
|
buildInputs = [ core/*kpathsea*/ zlib libpng freetype gd ghostscript makeWrapper ];
|
||||||
|
|
||||||
preConfigure = "cd texk/dvipng";
|
preConfigure = ''
|
||||||
|
cd texk/dvipng
|
||||||
|
patchShebangs doc/texi2pod.pl
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags = common.configureFlags
|
configureFlags = common.configureFlags
|
||||||
++ [ "--with-system-kpathsea" "--with-gs=yes" "--disable-debug" ];
|
++ [ "--with-system-kpathsea" "--with-gs=yes" "--disable-debug" ];
|
||||||
|
@ -108,8 +108,12 @@ let
|
|||||||
# Common packages should get served from the binary cache anyway.
|
# Common packages should get served from the binary cache anyway.
|
||||||
# See discussions, e.g. https://github.com/NixOS/nixpkgs/issues/24683
|
# See discussions, e.g. https://github.com/NixOS/nixpkgs/issues/24683
|
||||||
urlPrefixes = args.urlPrefixes or [
|
urlPrefixes = args.urlPrefixes or [
|
||||||
http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2018/tlnet-final/archive
|
# Mirror hosted by @veprbl
|
||||||
ftp://tug.org/texlive/historic/2018/tlnet-final/archive
|
http://146.185.144.154/texlive-2019
|
||||||
|
|
||||||
|
# TODO: Upgrade to the final snapshot of the packages before 20.03
|
||||||
|
#http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2019/tlnet-final/archive
|
||||||
|
#ftp://tug.org/texlive/historic/2019/tlnet-final/archive
|
||||||
];
|
];
|
||||||
|
|
||||||
src = fetchurl { inherit urls sha512; };
|
src = fetchurl { inherit urls sha512; };
|
||||||
@ -178,7 +182,7 @@ in
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
{ inherit (tl)
|
{ inherit (tl)
|
||||||
scheme-basic scheme-context scheme-full scheme-gust
|
scheme-basic scheme-context scheme-full scheme-gust scheme-infraonly
|
||||||
scheme-medium scheme-minimal scheme-small scheme-tetex;
|
scheme-medium scheme-minimal scheme-small scheme-tetex;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user