Skip to content

Commit

Permalink
nixos/packages: fix maintainer listing (they are no longer strings)
Browse files Browse the repository at this point in the history
  • Loading branch information
eqyiel committed Apr 27, 2018
1 parent a234c54 commit 008b7ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nixos/packages.tt
Expand Up @@ -252,7 +252,13 @@ function showPackage() {
var maintainers = info["meta"]["maintainers"];
if (Array.isArray(maintainers) && maintainers.length > 0)
// FIXME: check whether elements are strings.
$(".maintainers", details).empty().text(maintainers.join(", "));
$(".maintainers", details)
.empty()
.text(
$.map(maintainers, function(element) {
return typeof element === 'object' ? element.name + ' <' + element.email + '>' : element;
})
.join(", "));

var longDescription = info["meta"]["longDescription"];
if (typeof longDescription == "string")
Expand Down

0 comments on commit 008b7ee

Please sign in to comment.