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

hydra-eval-jobs: don't use restrict-eval for Flakes

Pure evaluation should cover all the uses for restrict-eval, and
restrict-eval currently breaks accessing Git inputs on Flakes[1].

[1]: https://github.com/NixOS/nix/issues/7098
This commit is contained in:
Linus Heckemann 2022-10-31 13:07:42 +01:00
parent 312cb42275
commit 9370b0ef97

View file

@ -306,7 +306,9 @@ int main(int argc, char * * argv)
/* Prevent access to paths outside of the Nix search path and
to the environment. */
evalSettings.restrictEval = true;
if (!myArgs.flake) {
evalSettings.restrictEval = true;
}
/* When building a flake, use pure evaluation (no access to
'getEnv', 'currentSystem' etc. */