tests.texlive: check that tlpdb.nix is the one generated from the upstream texlive.tlpdb.xz

This commit is contained in:
Vincenzo Mantova 2023-03-12 21:04:39 +00:00
parent 76e92ae984
commit 1f2ad5bcd4
2 changed files with 11 additions and 0 deletions

View file

@ -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; })

View file

@ -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