top-level/packages-info: inherit name and meta

These will always be set on derivations produced by mkDerivation, so no
need for the conditional code paths.
This commit is contained in:
Wolfgang Walther
2026-01-15 11:38:23 +01:00
parent e19bb692c2
commit f928402cbf
+6 -4
View File
@@ -16,16 +16,18 @@ let
{
name = lib.showAttrPath path;
value = {
${if value ? "meta" then "meta" else null} = value.meta;
${if value ? "name" then "name" else null} = value.name;
${if value ? "outputName" then "outputName" else null} = value.outputName;
inherit (value)
meta
name
outputName
system
;
${if value ? "outputs" then "outputs" else null} = lib.listToAttrs (
lib.map (x: {
name = x;
value = null;
}) value.outputs
);
${if value ? "system" then "system" else null} = value.system;
# TODO: Remove the following two fallbacks when all packages have been fixed.
# Note: pname and version are *required* by repology, so do not change to
# the optional pattern from above.