Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
print-ambiguous.hh File Reference

Go to the source code of this file.

Functions

void nix::printAmbiguous (Value &v, const SymbolTable &symbols, std::ostream &str, std::set< const void * > *seen, int depth)

Function Documentation

◆ printAmbiguous()

void nix::printAmbiguous ( Value & v,
const SymbolTable & symbols,
std::ostream & str,
std::set< const void * > * seen,
int depth )

Print a value in the deprecated format used by nix-instantiate --eval and nix-env (for manifests).

This output can't be changed because it's part of the nix-instantiate API, but it produces ambiguous output; unevaluated thunks and lambdas (and a few other types) are printed as Nix path syntax like <CODE>.

See: https://github.com/NixOS/nix/issues/9730