1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-01 14:41:00 +01:00
nix/src/libutil-c
Robert Hensing 6bc358ba38 libexpr: Add recoverable errors
This provides an explicit API for call-fail-retry-succeed evaluation
flows, such as currently used in NixOps4.

An alternative design would simply reset the `Value` to the original
thunk instead of `tFailed` under the condition of catching a
`RecoverableEvalError`.
That is somewhat simpler, but I believe the presence of `tFailed` is
beneficial for possible use in the repl; being able to show the error
sooner, without re-evaluation.

The hasPos method and isEmpty function are required in order to avoid
an include loop.
2025-09-10 12:49:41 +02:00
..
.version Build nix-util-c with meson and unit test 2024-06-25 21:35:23 +02:00
meson.build treewide: Bump C++ standard version to C++23 2025-08-19 15:33:27 +03:00
meson.options Build nix-util-c with meson and unit test 2024-06-25 21:35:23 +02:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
nix_api_util.cc More extern "C" for FFI 2025-09-03 22:50:42 +02:00
nix_api_util.h libexpr: Add recoverable errors 2025-09-10 12:49:41 +02:00
nix_api_util_internal.h More extern "C" for FFI 2025-09-03 22:50:42 +02:00
package.nix Write just ./.version on all components 2025-02-18 11:41:35 +01:00