texlive.withPackages: convert tlDeps packages to attribute sets

For backward compatibility, if tlDeps contains old style packages
(of the type { pkgs = [ ... ]; }), convert them to the new attribute
sets.
This commit is contained in:
Vincenzo Mantova 2023-11-20 00:56:40 +00:00
parent 3119041421
commit a43b7a7751

View File

@ -58,7 +58,7 @@ let
keySet = p: {
key = ((p.name or "${p.pname}-${p.version}") + "-" + p.tlOutputName or p.outputName or "");
inherit p;
tlDeps = p.tlDeps or (p.requiredTeXPackages or (_: [ ]) [ ]);
tlDeps = if p ? tlDeps then ensurePkgSets p.tlDeps else (p.requiredTeXPackages or (_: [ ]) [ ]);
};
in
# texlive.combine: the wrapper already resolves all dependencies