about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/builtins/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index 6723b8d626ae..699dbf74c6f2 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -311,7 +311,9 @@ mod pure_builtins {
         if is_path {
             Ok(Value::Path(Box::new(result.into())))
         } else {
-            Ok(result.into())
+            Ok(Value::String(NixString::new_inherit_context_from(
+                &str, result,
+            )))
         }
     }