Merge pull request #220228 from apfelkuchen6/texlive-nlink
texlive: fix kpathsea path expansion
This commit is contained in:
@@ -1,6 +1,26 @@
|
||||
{ lib, runCommand, fetchurl, file, texlive, writeShellScript }:
|
||||
|
||||
{
|
||||
|
||||
luaotfload-fonts = runCommand "texlive-test-lualatex" {
|
||||
nativeBuildInputs = [
|
||||
(with texlive; combine { inherit scheme-medium libertinus-fonts; })
|
||||
];
|
||||
input = builtins.toFile "lualatex-testfile.tex" ''
|
||||
\documentclass{article}
|
||||
\usepackage{fontspec}
|
||||
\setmainfont{Libertinus Serif}
|
||||
\begin{document}
|
||||
\LaTeX{} is great
|
||||
\end{document}
|
||||
'';
|
||||
}
|
||||
''
|
||||
export HOME="$(mktemp -d)"
|
||||
lualatex -halt-on-error "$input"
|
||||
echo success > $out
|
||||
'';
|
||||
|
||||
chktex = runCommand "texlive-test-chktex" {
|
||||
nativeBuildInputs = [
|
||||
(with texlive; combine { inherit scheme-infraonly chktex; })
|
||||
|
||||
@@ -30,6 +30,14 @@ let
|
||||
for i in texk/kpathsea/mktex*; do
|
||||
sed -i '/^mydir=/d' "$i"
|
||||
done
|
||||
|
||||
# ST_NLINK_TRICK causes kpathsea to treat folders with no real subfolders
|
||||
# as leaves, even if they contain symlinks to other folders; must be
|
||||
# disabled to work correctly with the nix store", see section 5.3.6
|
||||
# “Subdirectory expansion” of the kpathsea manual
|
||||
# http://mirrors.ctan.org/systems/doc/kpathsea/kpathsea.pdf for more
|
||||
# details
|
||||
sed -i '/^#define ST_NLINK_TRICK/d' texk/kpathsea/config.h
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
|
||||
Reference in New Issue
Block a user