From 5a1f2a50e53f67a6e084699740346949da5f1a84 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Mar 2018 10:22:35 +0100 Subject: [PATCH] Handle derivations with system type 'builtin' Fixes #540. --- src/hydra-queue-runner/state.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/state.hh b/src/hydra-queue-runner/state.hh index fc17a116..0e91ab56 100644 --- a/src/hydra-queue-runner/state.hh +++ b/src/hydra-queue-runner/state.hh @@ -251,7 +251,8 @@ struct Machine { /* Check that this machine is of the type required by the step. */ - if (!systemTypes.count(step->drv.platform)) return false; + if (!systemTypes.count(step->drv.platform == "builtin" ? nix::settings.thisSystem : step->drv.platform)) + return false; /* Check that the step requires all mandatory features of this machine. (Thus, a machine with the mandatory "benchmark"