Skip to content

Commit

Permalink
texlive.withPackages: respect .outputSpecified even for old style pac…
Browse files Browse the repository at this point in the history
…kages (NixOS#265645)
  • Loading branch information
xworld21 authored and nyabinary committed Nov 14, 2023
1 parent bab151f commit c938363
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkgs/tools/typesetting/tex/texlive/build-tex-env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ lib.fix (self: {
let
### texlive.combine backward compatibility
# if necessary, convert old style { pkgs = [ ... ]; } packages to attribute sets
ensurePkgSets = ps: if ! __fromCombineWrapper && builtins.any (p: p ? pkgs && builtins.all (p: p ? tlType) p.pkgs) ps
then let oldStyle = builtins.partition (p: p ? pkgs && builtins.all (p: p ? tlType) p.pkgs) ps;
in oldStyle.wrong ++ lib.concatMap toTLPkgSets oldStyle.right
isOldPkgList = p: ! p.outputSpecified or false && p ? pkgs && builtins.all (p: p ? tlType) p.pkgs;
ensurePkgSets = ps: if ! __fromCombineWrapper && builtins.any isOldPkgList ps
then let oldPkgLists = builtins.partition isOldPkgList ps;
in oldPkgLists.wrong ++ lib.concatMap toTLPkgSets oldPkgLists.right
else ps;

pkgList = rec {
Expand Down

0 comments on commit c938363

Please sign in to comment.