about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-11-20 00:56:40 +0000
committerVincenzo Mantova <1962985+xworld21@users.noreply.github.com>2023-11-20 00:56:40 +0000
commita43b7a7751f7258893b9b4883d6af910c0641324 (patch)
tree0f428c56d37140a7c992e54b51505f1bbc2cc7d6
parent3119041421d2db99021e1c40d742bd2305da4aee (diff)
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.
-rw-r--r--pkgs/tools/typesetting/tex/texlive/build-tex-env.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/typesetting/tex/texlive/build-tex-env.nix b/pkgs/tools/typesetting/tex/texlive/build-tex-env.nix
index 133723cc39113..e0ba60300630b 100644
--- a/pkgs/tools/typesetting/tex/texlive/build-tex-env.nix
+++ b/pkgs/tools/typesetting/tex/texlive/build-tex-env.nix
@@ -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