texlive.combine: expose licensing information of combined packages
This commit is contained in:
@@ -17,6 +17,12 @@ let
|
|||||||
pkgList = rec {
|
pkgList = rec {
|
||||||
combined = combinePkgs (lib.attrValues pkgSet);
|
combined = combinePkgs (lib.attrValues pkgSet);
|
||||||
all = lib.filter pkgFilter combined;
|
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;
|
splitBin = builtins.partition (p: p.tlType == "bin") all;
|
||||||
bin = splitBin.right
|
bin = splitBin.right
|
||||||
++ lib.optional
|
++ lib.optional
|
||||||
@@ -84,6 +90,7 @@ let
|
|||||||
in (buildEnv {
|
in (buildEnv {
|
||||||
|
|
||||||
inherit name;
|
inherit name;
|
||||||
|
meta.license = pkgList.licenses;
|
||||||
|
|
||||||
ignoreCollisions = false;
|
ignoreCollisions = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user