diff --git a/src/c/hydra_eval_jobs.cc b/src/c/hydra_eval_jobs.cc index 84c6e8a5..b2efabd8 100644 --- a/src/c/hydra_eval_jobs.cc +++ b/src/c/hydra_eval_jobs.cc @@ -135,6 +135,18 @@ static void findJobsWrapped(EvalState & state, XMLWriter & doc, int prio = queryMetaFieldInt(meta, "schedulingPriority", 100); xmlAttrs["schedulingPriority"] = int2String(prio); + string maintainers; + MetaValue value = meta["maintainers"]; + if (value.type == MetaValue::tpString) + maintainers = value.stringValue; + else if (value.type == MetaValue::tpStrings) { + foreach (Strings::const_iterator, i, value.stringValues) { + if (maintainers.size() != 0) maintainers += ", "; + maintainers += *i; + } + } + xmlAttrs["maintainers"] = maintainers; + /* Register the derivation as a GC root. !!! This registers roots for jobs that we may have already done. */ diff --git a/src/root/build.tt b/src/root/build.tt index 989e5f5e..fd28cdc7 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -113,6 +113,10 @@ Homepage: [% IF build.homepage %] build.homepage) %]>[% HTML.escape(build.homepage) %][% ELSE %](not given)[% END %] + + Maintainer(s): + [% IF build.maintainers %][% HTML.escape(build.maintainers) %][% ELSE %](not given)[% END %] + System: [% build.system %] diff --git a/src/script/hydra_scheduler.pl b/src/script/hydra_scheduler.pl index 166f435f..79aba43a 100755 --- a/src/script/hydra_scheduler.pl +++ b/src/script/hydra_scheduler.pl @@ -289,6 +289,7 @@ sub checkJob { , longdescription => $job->{longDescription} , license => $job->{license} , homepage => $job->{homepage} + , maintainers => $job->{maintainers} , nixname => $job->{nixName} , drvpath => $drvPath , outpath => $outPath