nix-super/src
Maximilian Bosch 159b5815b5
repl: --option pure-eval true actually enables pure eval mode
To quote Eelco in #5867:

> Unfortunately we can't do
>
>     evalSettings.pureEval.setDefault(false);
>
> because then we have to do the same in main.cc (where
> pureEval is set to true), and that would allow pure-eval
> to be disabled globally from nix.conf.

Instead, a command should specify that it should be impure by
default. Then, `evalSettings.pureEval` will be set to `false;` unless
it's overridden by e.g. a CLI flag.

In that case it's IMHO OK to be (theoretically) able to override
`pure-eval` via `nix.conf` because it doesn't have an effect on commands
where `forceImpureByDefault` returns `false` (i.e. everything where pure
eval actually matters).

Closes #5867
2022-05-31 22:20:11 +02:00
..
build-remote Generalize DerivationType in preparation for impure derivations 2022-03-18 14:59:56 +00:00
libcmd repl: --option pure-eval true actually enables pure eval mode 2022-05-31 22:20:11 +02:00
libexpr Respect the outputSpecified attribute 2022-05-30 11:34:47 +02:00
libfetchers Fix a segfault in the git fetcher 2022-05-27 16:15:28 +02:00
libmain Avoid fmt when constructor already does it 2022-04-19 01:44:11 +00:00
libstore RemoteStore::queryRealisationUncached(): Fix potential noexcept violation 2022-05-30 13:27:13 +02:00
libutil repl: --option pure-eval true actually enables pure eval mode 2022-05-31 22:20:11 +02:00
nix repl: --option pure-eval true actually enables pure eval mode 2022-05-31 22:20:11 +02:00
nix-build Stop the logger properly in legacy commands 2022-05-11 12:58:45 +02:00
nix-channel Fix segfault in headerCallback() 2022-03-03 11:11:16 +01:00
nix-collect-garbage Deduplicate the Store downcasting with a template 2022-03-11 13:32:33 +00:00
nix-copy-closure copyPaths: Pass store by reference 2021-07-22 09:59:51 +02:00
nix-env Stop the logger properly in legacy commands 2022-05-11 12:58:45 +02:00
nix-instantiate store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
nix-store Stop the logger properly in legacy commands 2022-05-11 12:58:45 +02:00
resolve-system-dependencies Get rid of most .at calls (#6393) 2022-05-04 07:44:32 +02:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00