Skip to content

Commit 148a086

Browse files
committed
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]: NixOS/nix#7098
1 parent 312cb42 commit 148a086

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hydra-eval-jobs/hydra-eval-jobs.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ int main(int argc, char * * argv)
306306

307307
/* Prevent access to paths outside of the Nix search path and
308308
to the environment. */
309-
evalSettings.restrictEval = true;
309+
if (!myArgs.flake) {
310+
evalSettings.restrictEval = true;
311+
}
310312

311313
/* When building a flake, use pure evaluation (no access to
312314
'getEnv', 'currentSystem' etc. */

0 commit comments

Comments
 (0)