From 1f2ad5bcd40221c65a7d3e2dba0c6cc3a11eeca2 Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> Date: Sun, 12 Mar 2023 21:04:39 +0000 Subject: [PATCH] tests.texlive: check that tlpdb.nix is the one generated from the upstream texlive.tlpdb.xz --- pkgs/test/texlive/default.nix | 9 +++++++++ pkgs/tools/typesetting/tex/texlive/UPGRADING.md | 2 ++ 2 files changed, 11 insertions(+) diff --git a/pkgs/test/texlive/default.nix b/pkgs/test/texlive/default.nix index cb607f3a132..db83bd5149f 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; }) diff --git a/pkgs/tools/typesetting/tex/texlive/UPGRADING.md b/pkgs/tools/typesetting/tex/texlive/UPGRADING.md index 7f6dcff4042..acad0646d2b 100644 --- a/pkgs/tools/typesetting/tex/texlive/UPGRADING.md +++ b/pkgs/tools/typesetting/tex/texlive/UPGRADING.md @@ -56,6 +56,8 @@ This will download the daily snapshot of the CTAN package database numbers and sha512 hashes) for the selected upstream distribution. Then replace `tlpdb.nix` with the generated file. +The test `pkgs.tests.texlive.tlpdb-nix` verifies that the file `tlpdb.nix` +in Nixpkgs matches the one that generated from `texlive.tlpdb.xz`. ### Build packages locally and generate fix hashes