Skip to content

Commit e19bb69

Browse files
top-level/packages-info: add pname fallback
A recent change broke the repology updater, because it relies on pname and version fields. We can fallback to *some* values temporarily, but the right fix is to make sure pname is available on all packages in Nixpkgs. That effort is ongoing, once it is complete, we should remove the fallbacks.
1 parent 0761246 commit e19bb69

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pkgs/top-level/packages-info.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ let
2525
value = null;
2626
}) value.outputs
2727
);
28-
${if value ? "pname" then "pname" else null} = value.pname;
2928
${if value ? "system" then "system" else null} = value.system;
30-
${if value ? "version" then "version" else null} = value.version;
29+
# TODO: Remove the following two fallbacks when all packages have been fixed.
30+
# Note: pname and version are *required* by repology, so do not change to
31+
# the optional pattern from above.
32+
pname = value.pname or value.name;
33+
version = value.version or "";
3134
};
3235
}
3336
]

0 commit comments

Comments
 (0)