forked from lix-project/hydra
Handle derivations without a system attribute
This commit is contained in:
parent
eb2f3eb8d4
commit
b11cb37044
|
@ -128,6 +128,9 @@ static void findJobsWrapped(EvalState & state, XMLWriter & doc,
|
||||||
|
|
||||||
DrvInfo::Outputs outputs = drv.queryOutputs();
|
DrvInfo::Outputs outputs = drv.queryOutputs();
|
||||||
|
|
||||||
|
if (drv.system == "unknown")
|
||||||
|
throw EvalError("derivation must have a ‘system’ attribute");
|
||||||
|
|
||||||
xmlAttrs["jobName"] = attrPath;
|
xmlAttrs["jobName"] = attrPath;
|
||||||
xmlAttrs["nixName"] = drv.name;
|
xmlAttrs["nixName"] = drv.name;
|
||||||
xmlAttrs["system"] = drv.system;
|
xmlAttrs["system"] = drv.system;
|
||||||
|
|
Loading…
Reference in a new issue