lix/src/nix
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
..
realisation
add-file.md
add-path.md
add-to-store.cc
app.cc nix: Respect meta.outputsToInstall, and use all outputs by default 2022-04-26 17:17:27 +02:00
build.cc
build.md
bundle.cc Allow selecting derivation outputs using 'installable!outputs' 2022-05-03 13:43:52 +02:00
bundle.md
cat.cc
copy.cc
copy.md
daemon.cc
daemon.md
describe-stores.cc
develop.cc Allow setting bash-prompt-prefix nix develop configuration 2022-05-10 16:53:22 -04:00
develop.md Add documentation for bash-prompt-prefix 2022-05-10 16:55:25 -04:00
diff-closures.cc
diff-closures.md
doctor.cc
dump-path.cc
edit.cc replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
edit.md
eval.cc store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
eval.md
flake-archive.md
flake-check.md
flake-clone.md
flake-init.md
flake-lock.md
flake-metadata.md
flake-new.md
flake-prefetch.md
flake-show.md
flake-update.md
flake.cc Merge pull request #6560 from ncfavier/patch-1 2022-05-23 17:08:06 +02:00
flake.md fetchTree: Allow fetching plain files 2022-05-19 18:24:49 +02:00
fmt.cc Shut up clang warning 2022-04-28 14:24:17 +02:00
fmt.md
get-env.sh
hash.cc
help.md
key-convert-secret-to-public.md
key-generate-secret.md
local.mk
log.cc
log.md
ls.cc
main.cc repl: --option pure-eval true actually enables pure eval mode 2022-05-31 22:20:11 +02:00
make-content-addressed.cc
make-content-addressed.md
nar-cat.md
nar-dump-path.md
nar-ls.md
nar.cc
nar.md
nix.md Allow selecting derivation outputs using 'installable!outputs' 2022-05-03 13:43:52 +02:00
optimise-store.cc
optimise-store.md
path-info.cc
path-info.md
ping-store.cc
ping-store.md
prefetch.cc
print-dev-env.md
profile-diff-closures.md
profile-history.md
profile-install.md nix profile: Support overriding outputs 2022-05-03 15:00:34 +02:00
profile-list.md
profile-remove.md
profile-rollback.md
profile-upgrade.md
profile-wipe-history.md
profile.cc Fix warning 2022-05-25 15:05:39 +02:00
profile.md
realisation.cc
registry-add.md
registry-list.md
registry-pin.md
registry-remove.md
registry.cc
registry.md
repl.md
run.cc
run.hh
run.md
search.cc nix: Respect meta.outputsToInstall, and use all outputs by default 2022-04-26 17:17:27 +02:00
search.md
shell.md
show-config.cc
show-derivation.cc
show-derivation.md
sigs.cc
store-cat.md
store-copy-log.cc
store-copy-log.md
store-delete.cc
store-delete.md
store-dump-path.md
store-gc.cc
store-gc.md
store-ls.md
store-prefetch-file.md
store-repair.cc
store-repair.md
store.cc
upgrade-nix.cc
upgrade-nix.md
verify.cc
verify.md
why-depends.cc
why-depends.md