texlive: fix compatibility with Nix 2.3

Uses the `lib.groupBy` compatibility shim to allow this package to
work with the maintained, unflaked Nix 2.3 that many people use.
This commit is contained in:
Vincent Ambo 2023-11-12 20:19:42 +03:00
parent 54da2986be
commit 7e29fd663e

View File

@ -70,7 +70,7 @@ let
# group the specified outputs
specified = builtins.partition (p: p.outputSpecified or false) all;
specifiedOutputs = builtins.groupBy (p: p.tlOutputName or p.outputName) specified.right;
specifiedOutputs = lib.groupBy (p: p.tlOutputName or p.outputName) specified.right;
otherOutputNames = builtins.catAttrs "key" (builtins.genericClosure {
startSet = map (key: { inherit key; }) (lib.concatLists (builtins.catAttrs "outputs" specified.wrong));
operator = _: [ ];