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:
parent
0432bc52ea
commit
0c3e8a616e
2 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue