diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index 1e58a44..bd7c207 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -348,20 +348,12 @@ int main(int argc, char **argv) { myArgs.parseArgs(argv, argc); - /* FIXME: The build hook in conjunction with import-from-derivation is - * causing "unexpected EOF" during eval */ - settings.builders.setDefault(""); - - /* Prevent access to paths outside of the Nix search path and - to the environment. */ - evalSettings.restrictEval.setDefault(false); - /* When building a flake, use pure evaluation (no access to 'getEnv', 'currentSystem' etc. */ if (myArgs.impure) { - evalSettings.pureEval.setDefault(false); + evalSettings.pureEval.override(false); } else if (myArgs.flake) { - evalSettings.pureEval.setDefault(true); + evalSettings.pureEval.override(true); } if (myArgs.releaseExpr == "")