Commit 0a446b4a authored by h7x4's avatar h7x4 Committed by Bjørn Forsman
Browse files

texlive: remove use of `builtins.groupBy`

nixpkgs technically supports nix 2.3, but the groupBy builtin was
only introduced in nix 2.5. This should ensure backwards compatibility.
parent 92dd4191
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ let
        mainDrv = set.out or set.tex or set.tlpkg or set.texdoc or set.texsource; in
    builtins.removeAttrs mainDrv [ "outputSpecified" ];
  toTLPkgSets = { pkgs, ... }: lib.mapAttrsToList toTLPkgSet
    (builtins.groupBy (p: p.pname) pkgs);
    (lib.groupBy (p: p.pname) pkgs);

  # export TeX packages as { pkgs = [ ... ]; } in the top attribute set
  allPkgLists = lib.mapAttrs (n: drv: { pkgs = toTLPkgList drv; }) tl;