mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
texlive.combine: add ghostscript to wrappers instead of combining
This commit is contained in:
parent
01af940407
commit
07e50252e1
2 changed files with 14 additions and 17 deletions
|
@ -246,19 +246,18 @@
|
||||||
"kpsewhere" "latex-git-log" "ltxfileinfo" "mendex" "perltex" "pn2pdf" "psbook" "psnup" "psresize" "purifyeps"
|
"kpsewhere" "latex-git-log" "ltxfileinfo" "mendex" "perltex" "pn2pdf" "psbook" "psnup" "psresize" "purifyeps"
|
||||||
"simpdftex" "tex2xindy" "texluac" "texluajitc" "urlbst" "yplan" ];
|
"simpdftex" "tex2xindy" "texluac" "texluajitc" "urlbst" "yplan" ];
|
||||||
shortHelp = [ "adhocfilelist" "authorindex" "bbl2bib" "bibdoiadd" "bibmradd" "biburl2doi" "bibzbladd" "ctanupload"
|
shortHelp = [ "adhocfilelist" "authorindex" "bbl2bib" "bibdoiadd" "bibmradd" "biburl2doi" "bibzbladd" "ctanupload"
|
||||||
"disdvi" "dvibook" "dviconcat" "getmapdl" "latex2man" "listings-ext.sh" "lprsetup.sh" "pygmentex" ];
|
"disdvi" "dvibook" "dviconcat" "getmapdl" "latex2man" "listings-ext.sh" "pygmentex" ];
|
||||||
# (2) binaries that return non-zero exit code even if correctly asked for help
|
# (2) binaries that return non-zero exit code even if correctly asked for help
|
||||||
ignoreExitCode = [ "authorindex" "dvibook" "dviconcat" "dvipos" "extractres" "fig4latex" "fragmaster" "latex2man"
|
ignoreExitCode = [ "authorindex" "dvibook" "dviconcat" "dvipos" "extractres" "fig4latex" "fragmaster" "latex2man"
|
||||||
"latex-git-log" "listings-ext.sh" "lprsetup.sh" "pdf2dsc" "psbook" "psnup" "psresize" "purifyeps" "tex2xindy"
|
"latex-git-log" "listings-ext.sh" "psbook" "psnup" "psresize" "purifyeps" "tex2xindy" "texluac"
|
||||||
"texluac" "texluajitc" ];
|
"texluajitc" ];
|
||||||
# (2) binaries that print help on no argument, returning non-zero exit code
|
# (2) binaries that print help on no argument, returning non-zero exit code
|
||||||
noArg = [ "a2ping" "bg5+latex" "bg5+pdflatex" "bg5latex" "bg5pdflatex" "cef5latex" "cef5pdflatex" "ceflatex"
|
noArg = [ "a2ping" "bg5+latex" "bg5+pdflatex" "bg5latex" "bg5pdflatex" "cef5latex" "cef5pdflatex" "ceflatex"
|
||||||
"cefpdflatex" "cefslatex" "cefspdflatex" "chkdvifont" "dvi2fax" "dvipdf" "dvired" "dviselect"
|
"cefpdflatex" "cefslatex" "cefspdflatex" "chkdvifont" "dvi2fax" "dvired" "dviselect" "dvitodvi" "epsffit"
|
||||||
"dvitodvi" "eps2eps" "epsffit" "findhyph" "gbklatex" "gbkpdflatex" "komkindex" "kpsepath" "listbib"
|
"findhyph" "gbklatex" "gbkpdflatex" "komkindex" "kpsepath" "listbib" "listings-ext" "mag" "mathspic" "mf2pt1"
|
||||||
"listings-ext" "mag" "mathspic" "mf2pt1" "mk4ht" "mkt1font" "mkgrkindex" "musixflx" "pdf2ps" "pdftosrc"
|
"mk4ht" "mkt1font" "mkgrkindex" "musixflx" "pdf2ps" "pdftosrc" "pdfxup" "pedigree" "pfb2pfa" "pk2bm" "prepmx"
|
||||||
"pdfxup" "pedigree" "pfb2pfa" "pfbtopfa" "pk2bm" "pphs" "prepmx" "ps2pk" "ps2pdf*" "ps2ps*" "psselect" "pstops"
|
"ps2pk" "psselect" "pstops" "rubibtex" "rubikrotation" "sjislatex" "sjispdflatex" "srcredact" "t4ht" "tex4ht"
|
||||||
"rubibtex" "rubikrotation" "sjislatex" "sjispdflatex" "srcredact" "t4ht" "tex4ht" "texdiff" "texdirflatten"
|
"texdiff" "texdirflatten" "texplate" "tie" "ttf2kotexfont" "ttfdump" "vlna" "vpl2ovp" "vpl2vpl" "yplan" ];
|
||||||
"texplate" "tie" "ttf2kotexfont" "ttfdump" "vlna" "vpl2ovp" "vpl2vpl" "yplan" ];
|
|
||||||
# (3) binaries requiring a .tex file
|
# (3) binaries requiring a .tex file
|
||||||
contextTest = [ "htcontext" ];
|
contextTest = [ "htcontext" ];
|
||||||
latexTest = [ "de-macro" "e2pall" "htlatex" "htxelatex" "makeindex" "pslatex" "rumakeindex" "tpic2pdftex"
|
latexTest = [ "de-macro" "e2pall" "htlatex" "htxelatex" "makeindex" "pslatex" "rumakeindex" "tpic2pdftex"
|
||||||
|
@ -271,9 +270,6 @@
|
||||||
# compiled binaries
|
# compiled binaries
|
||||||
"dt2dv" "dv2dt" "dvi2tty" "dvidvi" "dvispc" "otp2ocp" "outocp" "pmxab"
|
"dt2dv" "dv2dt" "dvi2tty" "dvidvi" "dvispc" "otp2ocp" "outocp" "pmxab"
|
||||||
|
|
||||||
# ghostscript binaries
|
|
||||||
"gs" "gsx" "printafm"
|
|
||||||
|
|
||||||
# GUI scripts that accept no argument or crash without a graphics server; please test manualy
|
# GUI scripts that accept no argument or crash without a graphics server; please test manualy
|
||||||
"epspdftk" "texdoctk" "xasy"
|
"epspdftk" "texdoctk" "xasy"
|
||||||
|
|
||||||
|
|
|
@ -13,13 +13,14 @@ let
|
||||||
combined = combinePkgs (lib.attrValues pkgSet);
|
combined = combinePkgs (lib.attrValues pkgSet);
|
||||||
all = lib.filter pkgFilter combined;
|
all = lib.filter pkgFilter combined;
|
||||||
splitBin = builtins.partition (p: p.tlType == "bin") all;
|
splitBin = builtins.partition (p: p.tlType == "bin") all;
|
||||||
bin = splitBin.right
|
bin = splitBin.right;
|
||||||
++ lib.optional
|
|
||||||
(lib.any (p: p.tlType == "run" && p.pname == "pdfcrop") splitBin.wrong)
|
|
||||||
(lib.getBin ghostscript);
|
|
||||||
nonbin = splitBin.wrong;
|
nonbin = splitBin.wrong;
|
||||||
tlpkg = lib.filter (pkg: pkg.tlType == "tlpkg") combined;
|
tlpkg = lib.filter (pkg: pkg.tlType == "tlpkg") combined;
|
||||||
};
|
};
|
||||||
|
# list generated by inspecting `grep -IR '\([^a-zA-Z]\|^\)gs\( \|$\|"\)' "$TEXMFDIST"/scripts`
|
||||||
|
# and `grep -IR rungs "$TEXMFDIST"`
|
||||||
|
# and ignoring luatex, perl, and shell scripts (those must be patched using postFixup)
|
||||||
|
needsGhostscript = lib.any (p: lib.elem p.pname [ "context" "dvipdfmx" "latex-papersize" "lyluatex" ]) pkgList.bin;
|
||||||
|
|
||||||
name = "texlive-${extraName}-${bin.texliveYear}${extraVersion}";
|
name = "texlive-${extraName}-${bin.texliveYear}${extraVersion}";
|
||||||
|
|
||||||
|
@ -128,7 +129,7 @@ in (buildEnv {
|
||||||
--inherit-argv0 \
|
--inherit-argv0 \
|
||||||
--prefix PATH : "${
|
--prefix PATH : "${
|
||||||
# very common dependencies that are not detected by tests.texlive.binaries
|
# very common dependencies that are not detected by tests.texlive.binaries
|
||||||
lib.makeBinPath [ coreutils gawk gnugrep gnused ]}:$out/bin" \
|
lib.makeBinPath ([ coreutils gawk gnugrep gnused ] ++ lib.optional needsGhostscript ghostscript)}:$out/bin" \
|
||||||
--set-default TEXMFCNF "$TEXMFCNF" \
|
--set-default TEXMFCNF "$TEXMFCNF" \
|
||||||
--set-default FONTCONFIG_FILE "${
|
--set-default FONTCONFIG_FILE "${
|
||||||
# necessary for XeTeX to find the fonts distributed with texlive
|
# necessary for XeTeX to find the fonts distributed with texlive
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue