Commit a43b7a77 authored by Vincenzo Mantova's avatar Vincenzo Mantova
Browse files

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.
parent 31190414
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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