texlive: add test for lualatex fonts

This commit is contained in:
apfelkuchen06 2023-03-08 23:37:01 +01:00
parent 0c009e1824
commit d4a78d5f09

View File

@ -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; })