Skip to content

Commit

Permalink
hydra-eval-jobs: don't use restrict-eval for Flakes
Browse files Browse the repository at this point in the history
Pure evaluation should cover all the uses for restrict-eval, and
restrict-eval currently breaks accessing Git inputs on Flakes[1].

[1]: NixOS/nix#7098
  • Loading branch information
lheckemann committed Oct 31, 2022
1 parent 312cb42 commit 9370b0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hydra-eval-jobs/hydra-eval-jobs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 9370b0e

Please sign in to comment.