forked from lix-project/hydra
Handle derivations without a system attribute
This commit is contained in:
parent
eb2f3eb8d4
commit
b11cb37044
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue