From 39f597f778f45b4ab39f250e79971e91a2bab3a7 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sun, 5 Dec 2021 12:34:44 -0800 Subject: [PATCH] hive: Pass `--read-write-mode` to `nix-instantiate --eval` This enables the use of IFD inside `meta` and node `deployment.*` options, from which we obtain the values with `nix-instantiate --eval`. Fixes #45. --- src/nix/hive/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nix/hive/mod.rs b/src/nix/hive/mod.rs index e82e699..3afb9e5 100644 --- a/src/nix/hive/mod.rs +++ b/src/nix/hive/mod.rs @@ -374,7 +374,8 @@ impl<'hive> NixInstantiate<'hive> { fn eval(self) -> Command { let mut command = self.instantiate(); - command.arg("--eval").arg("--json"); + command.arg("--eval").arg("--json") + .arg("--read-write-mode"); // For cases involving IFD command }