Handle derivations without a system attribute

This commit is contained in:
Eelco Dolstra 2014-09-22 16:53:40 +02:00
parent eb2f3eb8d4
commit b11cb37044

View file

@ -128,6 +128,9 @@ static void findJobsWrapped(EvalState & state, XMLWriter & doc,
DrvInfo::Outputs outputs = drv.queryOutputs();
if (drv.system == "unknown")
throw EvalError("derivation must have a system attribute");
xmlAttrs["jobName"] = attrPath;
xmlAttrs["nixName"] = drv.name;
xmlAttrs["system"] = drv.system;