3
0
Fork 0
forked from mirrors/nixpkgs

Revert "texlive.combine: expose licensing information of combined packages"

This reverts commit fa7428470a from PR #238456

Evaluation on Hydra.nixos.org was crashing because of this PR merge,
most likely because this computation of licenses for sets like
texlive.combined.scheme-full (thousands of packages) was too expensive.
This commit is contained in:
Vladimír Čunát 2023-06-20 08:33:21 +02:00
parent 3def2fb700
commit 205ee073b0
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -17,12 +17,6 @@ let
pkgList = rec {
combined = combinePkgs (lib.attrValues pkgSet);
all = lib.filter pkgFilter combined;
licenses = let
concatLicenses = lib.foldl (acc: el: if builtins.elem el acc then acc else acc ++ [ el ]);
in lib.foldl
(acc: pkg:
concatLicenses acc (lib.toList (pkg.meta.license or [])))
[] all;
splitBin = builtins.partition (p: p.tlType == "bin") all;
bin = splitBin.right
++ lib.optional
@ -90,7 +84,6 @@ let
in (buildEnv {
inherit name;
meta.license = pkgList.licenses;
ignoreCollisions = false;