aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-06-13 16:11:46 +0200
committerGitHub <noreply@github.com>2022-06-13 16:11:46 +0200
commit798efdf10bae6b2b31a6d37b089ee868f08b43ab (patch)
tree6f247fe086912e2940faaeaca9498c403ec7d648 /src/nix
parent2fef24f528769d7fedd3275873b59956b13257d1 (diff)
parent159b5815b527f466578a2d28fbf832617cc45b88 (diff)
Merge pull request #6027 from Ma27/pure-repl
repl: `--option pure-eval true` actually enables pure eval mode
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index dadb54306..f398e3118 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -380,6 +380,9 @@ void mainWrapped(int argc, char * * argv)
settings.ttlPositiveNarInfoCache = 0;
}
+ if (args.command->second->forceImpureByDefault() && !evalSettings.pureEval.overridden) {
+ evalSettings.pureEval = false;
+ }
args.command->second->prepare();
args.command->second->run();
}