~misterio/nix-config

a17e653fa82504117c5ca76bef3a1e23f2d815ef — Gabriel Fontes 4 months ago f442467
hydra: drop hydra-restrict-eval patch

It's now provided by nixpkgs
2 files changed, 0 insertions(+), 16 deletions(-)

M overlays/default.nix
D overlays/hydra-restrict-eval.diff
M overlays/default.nix => overlays/default.nix +0 -3
@@ 42,9 42,6 @@ in
    # https://github.com/mdellweg/pass_secret_service/pull/37
    pass-secret-service = addPatches prev.pass-secret-service [ ./pass-secret-service-native.diff ];

    # https://github.com/NixOS/nix/issues/7098
    hydra_unstable = addPatches prev.hydra_unstable [ ./hydra-restrict-eval.diff ];

    xdg-utils-spawn-terminal = addPatches prev.xdg-utils [ ./xdg-open-spawn-terminal.diff ];

    pfetch = prev.pfetch.overrideAttrs (oldAttrs: {

D overlays/hydra-restrict-eval.diff => overlays/hydra-restrict-eval.diff +0 -13
@@ 1,13 0,0 @@
diff --git a/src/hydra-eval-jobs/hydra-eval-jobs.cc b/src/hydra-eval-jobs/hydra-eval-jobs.cc
index 2fe2c80f..d4c26574 100644
--- a/src/hydra-eval-jobs/hydra-eval-jobs.cc
+++ b/src/hydra-eval-jobs/hydra-eval-jobs.cc
@@ -314,7 +314,7 @@ int main(int argc, char * * argv)
 
         /* Prevent access to paths outside of the Nix search path and
            to the environment. */
-        evalSettings.restrictEval = true;
+        evalSettings.restrictEval = !pureEval;
 
         /* When building a flake, use pure evaluation (no access to
            'getEnv', 'currentSystem' etc. */