about summary refs log tree commit diff
path: root/pkgs/test/texlive
diff options
context:
space:
mode:
authorVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-03-12 21:04:39 +0000
committerVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-03-12 21:04:39 +0000
commit1f2ad5bcd40221c65a7d3e2dba0c6cc3a11eeca2 (patch)
tree8ed5558e17a27edfa0af297d46769e48120b59fb /pkgs/test/texlive
parent76e92ae984c6d2e5d6fc45bc71ef85617fbdb16e (diff)
tests.texlive: check that tlpdb.nix is the one generated from the upstream texlive.tlpdb.xz
Diffstat (limited to 'pkgs/test/texlive')
-rw-r--r--pkgs/test/texlive/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/test/texlive/default.nix b/pkgs/test/texlive/default.nix
index cb607f3a1328e..db83bd5149ffb 100644
--- a/pkgs/test/texlive/default.nix
+++ b/pkgs/test/texlive/default.nix
@@ -2,6 +2,15 @@
 
 {
 
+  tlpdb-nix = runCommand "texlive-test-tlpdb-nix" {
+    nixpkgsTlpdbNix = ../../tools/typesetting/tex/texlive/tlpdb.nix;
+    tlpdbNix = texlive.tlpdb-nix;
+  }
+  ''
+    mkdir -p "$out"
+    diff -u "''${nixpkgsTlpdbNix}" "''${tlpdbNix}" | tee "$out/tlpdb.nix.patch"
+  '';
+
   luaotfload-fonts = runCommand "texlive-test-lualatex" {
     nativeBuildInputs = [
       (with texlive; combine { inherit scheme-medium libertinus-fonts; })