diff --git a/doc/manual/nix-instantiate.xml b/doc/manual/nix-instantiate.xml
index 618b61f15..9488bb733 100644
--- a/doc/manual/nix-instantiate.xml
+++ b/doc/manual/nix-instantiate.xml
@@ -35,6 +35,7 @@
+
@@ -140,6 +141,17 @@ policies.
+
+
+ When used with ,
+ perform evaluation in read/write mode so nix language features
+ that require it will still work (at the cost of needing to do
+ instantiation of every evaluated derivation).
+
+
+
+
+
diff --git a/src/nix-instantiate/nix-instantiate.cc b/src/nix-instantiate/nix-instantiate.cc
index b7f944062..1f4d1ffab 100644
--- a/src/nix-instantiate/nix-instantiate.cc
+++ b/src/nix-instantiate/nix-instantiate.cc
@@ -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;