From a58da07fc69dd9706c06aace7211108c55faaaef Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> Date: Fri, 14 Apr 2023 13:03:35 +0100 Subject: [PATCH] texlive: accept gracefully packages without pname or version (#226070) --- pkgs/tools/typesetting/tex/texlive/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/typesetting/tex/texlive/default.nix b/pkgs/tools/typesetting/tex/texlive/default.nix index f8b1bdc9ea7c..cbdedc9310c3 100644 --- a/pkgs/tools/typesetting/tex/texlive/default.nix +++ b/pkgs/tools/typesetting/tex/texlive/default.nix @@ -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