From 5946b47ab7bf3a80c4f756700087f7064f9b81de Mon Sep 17 00:00:00 2001 From: sterni Date: Thu, 5 Jan 2023 15:58:14 +0100 Subject: feat(tvix/eval): add builtins.{null,true,false} Code probably rarely relies on these, but it's not hard to support them. Change-Id: I8499fec34efaf031f9c013bbd370a13db929a2a3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7772 Reviewed-by: tazjin Tested-by: BuildkiteCI Autosubmit: sterni --- tvix/eval/src/builtins/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tvix/eval/src/builtins') diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs index 01ef1678c7ee..dcc158d10189 100644 --- a/tvix/eval/src/builtins/mod.rs +++ b/tvix/eval/src/builtins/mod.rs @@ -960,6 +960,9 @@ pub fn pure_builtins() -> Vec<(&'static str, Value)> { // Pure-value builtins result.push(("nixVersion", Value::String("2.3-compat-tvix-0.1".into()))); result.push(("langVersion", Value::Integer(6))); + result.push(("null", Value::Null)); + result.push(("true", Value::Bool(true))); + result.push(("false", Value::Bool(false))); result.push(( "currentSystem", -- cgit 1.4.1