about summary refs log tree commit diff
path: root/pkgs/test
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2023-03-12 09:06:28 +0100
committerVladimír Čunát <v@cunat.cz>2023-03-12 09:06:28 +0100
commit1dd94ad62fddb72cd29636a9f0a0457a2bd60c02 (patch)
treeb80bc5e525784be865b3d5f19b1c97d47a05e64d /pkgs/test
parente3b4b428606521b91c0149ef128f04c7d1be3f6b (diff)
parent32956b5f2a9f1a605bd865be9e3216dc7848d6fd (diff)
Merge branch 'master' into staging-next
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; })