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:
parent
312cb42275
commit
9370b0ef97
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue