texlive.bin.core: avoid unnecessary dependency on texlinks (#222323)

This commit is contained in:
Vincenzo Mantova
2023-03-31 19:34:53 -04:00
committed by GitHub
parent 569e920b55
commit b459da3172
+5 -2
View File
@@ -121,8 +121,11 @@ core = stdenv.mkDerivation rec {
installTargets = [ "install" "texlinks" ];
# TODO: perhaps improve texmf.cnf search locations
postInstall = /* links format -> engine will be regenerated in texlive.combine */ ''
PATH="$out/bin:$PATH" ${buildPackages.texlive.bin.texlinks}/bin/texlinks --cnffile "$out/share/texmf-dist/web2c/fmtutil.cnf" --unlink "$out/bin"
postInstall =
/* links format -> engine will be regenerated in texlive.combine
note: for unlinking, the texlinks patch is irrelevant, so we use
the included texlinks.sh to avoid the dependency on bin.texlinks */ ''
PATH="$out/bin:$PATH" sh ../texk/texlive/linked_scripts/texlive-extra/texlinks.sh --cnffile "$out/share/texmf-dist/web2c/fmtutil.cnf" --unlink "$out/bin"
'' + /* a few texmf-dist files are useful; take the rest from pkgs */ ''
mv "$out/share/texmf-dist/web2c/texmf.cnf" .
rm -r "$out/share/texmf-dist"