Commit Graph

396 Commits

Author SHA1 Message Date
Valentin Gagarin
30d76c858b use less ambiguous grammar for what NixOS is
Co-authored-by: Silvan Mosberger <github@infinisil.com>
2022-10-04 08:34:33 +02:00
Valentin Gagarin
abf0f5e6d3 use consistent grammatical structure in requirements
Co-authored-by: Silvan Mosberger <github@infinisil.com>
2022-10-04 08:34:33 +02:00
Valentin Gagarin
95ce02b793 update Nix manual URLs 2022-10-04 08:34:33 +02:00
Valentin Gagarin
8ac15f8a08 Update source/tutorials/nix-language.md
Co-authored-by: Dan Baker <daniel.n.baker@gmail.com>
2022-10-04 08:34:33 +02:00
Valentin Gagarin
78a43fb28f use consistent terminology
sort out derivation, Derivation, `derivation` and store derivation
2022-10-04 08:34:33 +02:00
Valentin Gagarin
adaba6637e fix wording 2022-10-04 08:34:33 +02:00
Valentin Gagarin
e0ee7d5597 link to installation instructions 2022-10-04 08:34:33 +02:00
Valentin Gagarin
17bf23546a rework section on side effects 2022-10-04 08:34:33 +02:00
Valentin Gagarin
397a39f9de mention operators
at some point we have to introduce them, even if they are not really
important here.
2022-10-04 08:34:33 +02:00
Valentin Gagarin
8f1dd17106 add proper examples to file system paths 2022-10-04 08:34:33 +02:00
Valentin Gagarin
c36c6ed732 rewordings and links 2022-10-04 08:34:33 +02:00
Valentin Gagarin
8a4d87474b add detailed explanations to some examples 2022-10-04 08:34:33 +02:00
Valentin Gagarin
cd7e00ba8d reword time estimate 2022-10-04 08:34:33 +02:00
Valentin Gagarin
bb9e7d7ab3 Nix package manager -> Nix
based on https://github.com/NixOS/nix.dev/issues/275#issuecomment-1227572104
2022-10-04 08:34:33 +02:00
Valentin Gagarin
7e18f44302 add introduction and cross-linking
this should both help with initial overview and navigation
2022-10-04 08:34:33 +02:00
Valentin Gagarin
5851659340 add detailed explanation to let expression 2022-10-04 08:34:33 +02:00
Valentin Gagarin
4253a0bc7a nixpkgs/lib -> pkgs.lib
this is probably how most people would encounter it, but since there are
so many equivalent representations, maybe it does not matter outside
a dedicated guide to Nixpkgs
2022-10-04 08:34:33 +02:00
Valentin Gagarin
922e018fd6 nixpkgs -> Nixpkgs
based on https://github.com/NixOS/nix.dev/issues/275#issuecomment-1227572104
2022-10-04 08:34:33 +02:00
Valentin Gagarin
b084005748 fix copypaste error 2022-10-04 08:34:33 +02:00
Valentin Gagarin
aa0bf42491 fix typo in link 2022-10-04 08:34:33 +02:00
Valentin Gagarin
55c4d4feca attempt at detailed explanation 2022-10-04 08:34:33 +02:00
Valentin Gagarin
dfc6d1c31f standard -> function 2022-10-04 08:34:33 +02:00
Valentin Gagarin
ab8784c2ad add links to next steps 2022-10-04 08:34:33 +02:00
Valentin Gagarin
aebc9e91b1 clarifications 2022-10-04 08:34:33 +02:00
Valentin Gagarin
d770b13aef add links, fixups 2022-10-04 08:34:33 +02:00
Valentin Gagarin
8ee55cbac1 expand on side effects, add next steps 2022-10-04 08:34:33 +02:00
Valentin Gagarin
c9f5ac3f1f show store paths and fetchers 2022-10-04 08:34:33 +02:00
Valentin Gagarin
3a86358dbf add TODO for operators 2022-10-04 08:34:33 +02:00
Valentin Gagarin
92f96cab30 more explicit explanation of partial evaluation 2022-10-04 08:34:33 +02:00
Valentin Gagarin
95f98f6a60 more explicit syntax notes 2022-10-04 08:34:33 +02:00
Valentin Gagarin
f791bd4875 nixpkgs is a token 2022-10-04 08:34:33 +02:00
Valentin Gagarin
cf0292e470 restructure introduction, show elements of programming
this does not take away information, but presents it in a different
order. put emphasis on that the language does not do all that many
things.
2022-10-04 08:34:33 +02:00
Valentin Gagarin
ee6f1e1c33 generate anchors down to heading level 3 2022-10-04 08:34:33 +02:00
Valentin Gagarin
d33eedadd3 add imports to side effects 2022-10-04 08:34:33 +02:00
Valentin Gagarin
20789513e8 notes on argument structure 2022-10-04 08:34:33 +02:00
Valentin Gagarin
e7807baa57 clarify explanation of nested functions 2022-10-04 08:34:33 +02:00
Valentin Gagarin
9a994092c2 function calls aka function application 2022-10-04 08:34:33 +02:00
Valentin Gagarin
6390aae686 remove superfluous empty line 2022-10-04 08:34:32 +02:00
Valentin Gagarin
bd4118ebb2 move search paths to values section 2022-10-04 08:34:32 +02:00
Valentin Gagarin
9b158e60d1 clarify inheriting from attribute 2022-10-04 08:34:32 +02:00
Valentin Gagarin
6c903a6ccf clarify requirements of being able to read code 2022-10-04 08:34:32 +02:00
Valentin Gagarin
b0023d2ade add subsections to modes of running examples
reorder to have the REPL first (it's fewer steps)
2022-10-04 08:34:32 +02:00
Valentin Gagarin
155ad688bc explain how to read examples 2022-10-04 08:34:32 +02:00
Valentin Gagarin
6a4e69eef1 remove paths and strings from top-level outline 2022-10-04 08:34:32 +02:00
Valentin Gagarin
2406c22293 emphasize what this guide is about 2022-10-04 08:34:32 +02:00
Valentin Gagarin
61524d0d34 expressions can be nested 2022-10-04 08:34:32 +02:00
Valentin Gagarin
40ca6fc799 note on difference between antiquotation and shell vars 2022-10-04 08:34:32 +02:00
Valentin Gagarin
b3a42cffdc expand on strings and antiquotation
move section into "names and values": it should be short enough not to
exhaust readers before we get to functions, and would not make much
sense as an afterthought to functions.
2022-10-04 08:34:32 +02:00
Valentin Gagarin
ca37fe15b0 regularize function examples 2022-10-04 08:34:32 +02:00
Valentin Gagarin
43f2895b2c add counter-example to attribute set argument 2022-10-04 08:34:32 +02:00