mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
texlive: improve reproducibility
Co-authored-by: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com>
This commit is contained in:
parent
671960c878
commit
804ee6ef17
@ -225,7 +225,7 @@ in (buildEnv {
|
||||
|
||||
perl `type -P mktexlsr.pl` --sort ./share/texmf
|
||||
${bin.texlinks}/bin/texlinks "$out/bin" && wrapBin
|
||||
perl `type -P fmtutil.pl` --sys --all | grep '^fmtutil' # too verbose
|
||||
FORCE_SOURCE_DATE=1 perl `type -P fmtutil.pl` --sys --all | grep '^fmtutil' # too verbose
|
||||
#${bin.texlinks}/bin/texlinks "$out/bin" && wrapBin # do we need to regenerate format links?
|
||||
|
||||
# Disable unavailable map files
|
||||
@ -233,6 +233,9 @@ in (buildEnv {
|
||||
# Regenerate the map files (this is optional)
|
||||
perl `type -P updmap.pl` --sys --force
|
||||
|
||||
# sort entries to improve reproducibility
|
||||
[[ -f "$TEXMFSYSCONFIG"/web2c/updmap.cfg ]] && sort -o "$TEXMFSYSCONFIG"/web2c/updmap.cfg "$TEXMFSYSCONFIG"/web2c/updmap.cfg
|
||||
|
||||
perl `type -P mktexlsr.pl` --sort ./share/texmf-* # to make sure
|
||||
'' +
|
||||
# install (wrappers for) scripts, based on a list from upstream texlive
|
||||
@ -299,7 +302,12 @@ in (buildEnv {
|
||||
)
|
||||
fi
|
||||
''
|
||||
+ bin.cleanBrokenLinks
|
||||
+ bin.cleanBrokenLinks +
|
||||
# Get rid of all log files. They are not needed, but take up space
|
||||
# and render the build unreproducible by their embedded timestamps.
|
||||
''
|
||||
find $TEXMFSYSVAR/web2c -name '*.log' -delete
|
||||
''
|
||||
;
|
||||
}).overrideAttrs (_: { allowSubstitutes = true; })
|
||||
# TODO: make TeX fonts visible by fontconfig: it should be enough to install an appropriate file
|
||||
|
Loading…
Reference in New Issue
Block a user