1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

More docs

This commit is contained in:
Eelco Dolstra 2024-11-06 13:12:02 +01:00
parent a150798ce4
commit 0401e2710f
2 changed files with 6 additions and 5 deletions

View file

@ -92,10 +92,9 @@ public:
/** /**
* Return whether this is a "final" input, meaning that fetching * Return whether this is a "final" input, meaning that fetching
* it will not add, remove or change any attributes. For instance, * it will not add, remove or change any attributes. (See
* a Git input with a `rev` attribute but without a `lastModified` * `checkLocks()` for the semantics.) Only "final" inputs can be
* attribute is considered locked but not final. Only "final" * substituted from a binary cache.
* inputs can be substituted from a binary cache.
* *
* The "final" state is denoted by the presence of an attribute * The "final" state is denoted by the presence of an attribute
* `__final = true`. This attribute is currently undocumented and * `__final = true`. This attribute is currently undocumented and

View file

@ -148,7 +148,7 @@ reference types:
* `ref`: A Git or Mercurial branch or tag name. * `ref`: A Git or Mercurial branch or tag name.
Finally, some attribute are typically not specified by the user, but Finally, some attributes are typically not specified by the user, but
can occur in *locked* flake references and are available to Nix code: can occur in *locked* flake references and are available to Nix code:
* `revCount`: The number of ancestors of the commit `rev`. * `revCount`: The number of ancestors of the commit `rev`.
@ -159,6 +159,8 @@ can occur in *locked* flake references and are available to Nix code:
for tarball flakes, it's the most recent timestamp of any file for tarball flakes, it's the most recent timestamp of any file
inside the tarball. inside the tarball.
Attributes that start with `__` are internal or experimental and may be removed in future versions.
## Types ## Types
Currently the `type` attribute can be one of the following: Currently the `type` attribute can be one of the following: