diff options
author | sterni <sternenseemann@systemli.org> | 2023-01-05T14·58+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-01-06T12·14+0000 |
commit | 5946b47ab7bf3a80c4f756700087f7064f9b81de (patch) | |
tree | b972f769559fc3d2d8f39fcbbd6c5f553635731a /tvix/eval/src/builtins | |
parent | b7090ec874f6a1ccb315c64c499d8dc8885325fd (diff) |
feat(tvix/eval): add builtins.{null,true,false} r/5595
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 <tazjin@tvl.su> Tested-by: BuildkiteCI Autosubmit: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'tvix/eval/src/builtins')
-rw-r--r-- | tvix/eval/src/builtins/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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", |