about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-09-04T20·28+0200
committerclbot <clbot@tvl.fyi>2022-09-04T21·02+0000
commite25972877a70352a3990bbc4a7386a9d76045f09 (patch)
treefdb4e58675580f002179895970c337cee34bf47d
parentb0d39aa19f180ad6cab634d11d4e51a0d3bd7710 (diff)
docs(tvix/eval): add a list of builtins added in Nix >= 2.4 r/4647
`builtins.getFlake` doesn't interest us, of course, but some others may
be worth (or easy) to implement. They are pretty low priority, though,
since nixpkgs has compatiblity wrappers for the ones it uses.

The new debugging-related builtins (break and traceVerbose) are
interesting to note, but may not make sense to implement at all.

Change-Id: Icae547aa3bd9d6ee6b87897ba8210eb9b9b044c7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6332
Tested-by: BuildkiteCI
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: tazjin <tazjin@tvl.su>
-rw-r--r--tvix/eval/docs/builtins.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/tvix/eval/docs/builtins.md b/tvix/eval/docs/builtins.md
index fe11af06343f..b5f0053031a1 100644
--- a/tvix/eval/docs/builtins.md
+++ b/tvix/eval/docs/builtins.md
@@ -118,3 +118,14 @@ See also https://nixos.org/manual/nix/stable/expressions/builtins.html
 | unsafeGetAttrPos              | false  |       |      |
 | valueSize                     | false  |       |      |
 
+## Added after C++ Nix 2.3 (without Flakes enabled)
+
+| name          | global | arity | pure  |
+|---------------|--------|-------|-------|
+| break         | false  | 1     |       |
+| ceil          | false  | 1     | true  |
+| fetchTree     | true   | 1     |       |
+| floor         | false  | 1     | true  |
+| groupBy       | false  | 2     | true  |
+| traceVerbose  | false  | 2     |       |
+| zipAttrsWith  | false  | 2     | true  |