3
0
Fork 0
forked from mirrors/nixpkgs

texlive: accept gracefully packages without pname or version (#226070)

This commit is contained in:
Vincenzo Mantova 2023-04-14 13:03:35 +01:00 committed by GitHub
parent bc74c8fb42
commit a58da07fc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,9 +187,9 @@ let
let
# a TeX package is an attribute set { pkgs = [ ... ]; ... } where pkgs is a list of derivations
# the derivations make up the TeX package and optionally (for backward compatibility) its dependencies
tlPkgToSets = { pkgs, ... }: map ({ pname, tlType, version, outputName ? "", ... }@pkg: {
tlPkgToSets = { pkgs, ... }: map ({ tlType, version ? "", outputName ? "", ... }@pkg: {
# outputName required to distinguish among bin.core-big outputs
key = "${pname}.${tlType}-${version}-${outputName}";
key = "${pkg.pname or pkg.name}.${tlType}-${version}-${outputName}";
inherit pkg;
}) pkgs;
pkgListToSets = lib.concatMap tlPkgToSets; in