From f8dad73ac8e33820bde3e5bae86cee4a421c75ca Mon Sep 17 00:00:00 2001 From: adisbladis Date: Wed, 25 Aug 2021 03:11:16 -0500 Subject: [PATCH] Move outputs definition closer to use --- src/nix-eval-jobs.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index d6fb4ee4a..a9bf44b0d 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -173,8 +173,6 @@ static void worker( if (auto drv = getDerivation(state, *v, false)) { - DrvInfo::Outputs outputs = drv->queryOutputs(); - if (drv->querySystem() == "unknown") throw EvalError("derivation must have a 'system' attribute"); @@ -224,6 +222,7 @@ static void worker( downloadSize, narSize); + DrvInfo::Outputs outputs = drv->queryOutputs(); nlohmann::json out; for (auto & p : outputs) { out[p.first] = p.second;