Fetches the tree specified by the attribute set or URL spec.

The spec is in the form of a flake reference; flake references are a thin wrapper around fetchTree.

There are some efforts to document the behaviour of fetchTree independently of flakes, but they have not yet borne fruit as of 2025-03.

spec also accepts the following special attribute not documented there: