1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-17 16:37:26 -04:00

Make eval restriction an option instead of forcing

This commit is contained in:
Janne Heß 2021-03-09 19:20:14 +01:00
parent b9fb66401b
commit de203436cd
No known key found for this signature in database
GPG key ID: 69165158F05265DF

View file

@ -268,6 +268,7 @@ int main(int argc, char * * argv)
auto nrWorkers = config->getIntOption("evaluator_workers", 1);
maxMemorySize = config->getIntOption("evaluator_max_memory_size", 4096);
auto restrictEval = config->getBoolOption("evaluator_restrict_eval", true);
initNix();
initGC();
@ -279,7 +280,7 @@ int main(int argc, char * * argv)
/* Prevent access to paths outside of the Nix search path and
to the environment. */
evalSettings.restrictEval = true;
evalSettings.restrictEval = restrictEval;
/* When building a flake, use pure evaluation (no access to
'getEnv', 'currentSystem' etc. */