From e25972877a70352a3990bbc4a7386a9d76045f09 Mon Sep 17 00:00:00 2001 From: sterni Date: Sun, 4 Sep 2022 22:28:42 +0200 Subject: [PATCH] docs(tvix/eval): add a list of builtins added in Nix >= 2.4 `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 Reviewed-by: tazjin --- tvix/eval/docs/builtins.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tvix/eval/docs/builtins.md b/tvix/eval/docs/builtins.md index fe11af063..b5f005303 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 |