about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/eval/src/compiler.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler.rs b/tvix/eval/src/compiler.rs
index 7685e2f08c..1a4e8df1da 100644
--- a/tvix/eval/src/compiler.rs
+++ b/tvix/eval/src/compiler.rs
@@ -132,7 +132,14 @@ impl Compiler {
                 Ok(())
             }
 
-            rnix::NixValue::String(_) => todo!(),
+            // These nodes are yielded by literal URL values.
+            rnix::NixValue::String(s) => {
+                // TODO(tazjin): emit deprecation warning
+                let idx = self.chunk.add_constant(Value::String(s.into()));
+                self.chunk.add_op(OpCode::OpConstant(idx));
+                Ok(())
+            }
+
             rnix::NixValue::Path(_, _) => todo!(),
         }
     }