about summary refs log tree commit diff
path: root/pkgs/test
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-03-12 12:02:07 +0000
committerGitHub <noreply@github.com>2023-03-12 12:02:07 +0000
commit681b1c28a471df0d3fdef27a7b9ffa32aecdbc0f (patch)
treefe53003bb67c33c8578214dc44084e26cc74aa1a /pkgs/test
parent249da6de9c1afa6a31b09e3d1dcfc14d8cf0aad6 (diff)
parent9d8f144878711c034914fe452563c39b253fb43e (diff)
Merge staging-next into staging
Diffstat (limited to 'pkgs/test')
-rw-r--r--pkgs/test/texlive/default.nix20
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; })