about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorRyan Lahfa <tvl@lahfa.xyz>2023-12-25T21·07+0100
committerclbot <clbot@tvl.fyi>2024-01-03T16·57+0000
commite259a5c42b9730761f701b62dbbc39105d6b475a (patch)
treea3822dc70625bda81ce078bf011da86d8d3b62d1 /tvix/eval
parentdb748741da960a0dd8d1c0a014706b72f784fbc6 (diff)
feat(tvix/eval): context-aware `dirOf` r/7320
Change-Id: If73a82a7106de9b479c950741efb70bffabd470a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10424
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
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,
+            )))
         }
     }