Skip to content

Commit

Permalink
nix/flake.md: flakes do not evaluate metadata outside of outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ckiee committed Jun 8, 2022
1 parent 388c457 commit 6f3c897
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/nix/flake.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,14 @@ derivation):
}
```



`flake.nix` is written in a limited subset of the Nix language
in order to prevent metadata lookups from hanging; values must
be written directly and indirect evaluations such as `let..in`
are not permitted. This does not apply to the body of
the `outputs` function.

The following attributes are supported in `flake.nix`:

* `description`: A short, one-line description of the flake.
Expand Down

0 comments on commit 6f3c897

Please sign in to comment.