mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 14:32:43 -04:00
add evaluation result to example
This commit is contained in:
parent
87df93e7f8
commit
6b807a91c5
|
@ -50,6 +50,8 @@ The following example is a Nix expression adding two numbers:
|
|||
|
||||
1 + 2
|
||||
|
||||
3
|
||||
|
||||
Use `nix-instantiate --eval` to evaluate the expression in a Nix file.
|
||||
|
||||
echo 1 + 2 > file.nix
|
||||
|
|
Loading…
Reference in a new issue