diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-03-12 12:02:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 12:02:07 +0000 |
commit | 681b1c28a471df0d3fdef27a7b9ffa32aecdbc0f (patch) | |
tree | fe53003bb67c33c8578214dc44084e26cc74aa1a /pkgs/test | |
parent | 249da6de9c1afa6a31b09e3d1dcfc14d8cf0aad6 (diff) | |
parent | 9d8f144878711c034914fe452563c39b253fb43e (diff) |
Merge staging-next into staging
Diffstat (limited to 'pkgs/test')
-rw-r--r-- | pkgs/test/texlive/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/test/texlive/default.nix b/pkgs/test/texlive/default.nix index 217a862e1c563..cb607f3a1328e 100644 --- a/pkgs/test/texlive/default.nix +++ b/pkgs/test/texlive/default.nix @@ -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; }) |