1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

nix-instantiate: Add a --no-readonly-mode flag

This allows running nix-instantiate --eval-only without performing the
evaluation in readonly mode, letting features like import from
derivation and automatic substitution of builtins.storePath paths work.

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2014-02-04 09:17:59 -05:00 committed by Eelco Dolstra
parent 0432bc52ea
commit 0c3e8a616e
2 changed files with 15 additions and 0 deletions

View file

@ -107,6 +107,9 @@ void run(Strings args)
settings.readOnlyMode = true;
evalOnly = true;
}
else if (arg == "--no-readonly-mode") {
settings.readOnlyMode = false;
}
else if (arg == "--parse-only") {
settings.readOnlyMode = true;
parseOnly = evalOnly = true;