Skip to content

Commit

Permalink
make diagrams compatible with svgbob
Browse files Browse the repository at this point in the history
this will at some point enable rendering them nicely for the web
  • Loading branch information
fricklerhandwerk committed Nov 9, 2022
1 parent 98447c1 commit 3d716df
Showing 1 changed file with 31 additions and 22 deletions.
53 changes: 31 additions & 22 deletions doc/manual/src/architecture/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,25 @@ Nix consists of [hierarchical layers].

```
+---------------------------------------------------------------+
| Nix |
| [ commmand line interface ]------, |
| Nix .-------------------------. |
| | commmand line interface |------. |
| '-------------------------' | |
| | | |
| evaluates | |
| | manages |
| V | |
| [ configuration language ] | |
| .-------------------------. | |
| | configuration language | | |
| '-------------------------' | |
| | | |
| +----------------------------|-------------------V----------+ |
| | store evaluates to | |
| | | | |
| evaluates to | |
| | V |
| +----------------------------|------------------------------+ |
| | store | | |
| | referenced by V builds | |
| | [ build input ] ---> [ build plan ] ---> [ build result ] | |
| | | |
| | .-------------. .------------. .--------------. | |
| | | build input |----->| build plan | ---->| build result | | |
| | '-------------' '------------' '--------------' | |
| +-----------------------------------------------------------+ |
+---------------------------------------------------------------+
```
Expand Down Expand Up @@ -54,24 +59,28 @@ The result of a build task can be input to another build task.
```
+----------------------------------------------------------------------------------+
| store .............................................. |
| store - - - - - - - - - - - - - - - - - - - - - - |
| : build plan : |
| : : |
| [ build input ]---instructions-, : |
| : | : |
| .-------------. : : |
| | build input |---instructions-. : |
| '-------------' : | : |
| : v : |
| [ build input ]--------->[ build task ]-instructions-, : |
| : | : |
| .-------------. : .------------. : |
| | build input |--------->| build task |-instructions-. : |
| '-------------' : '------------' | : |
| : v : |
| [ build input ]---instructions-, [ build task ]--->[ build result ] |
| : | ^ : |
| : v | : |
| [ build input ]--------->[ build task ]--------------' : |
| .-------------. : .------------. : .--------------. |
| | build input |---instructions-. | build task |--->| build result | |
| '-------------' : | '------------' : '--------------' |
| : v ^ : |
| .-------------. : .------------. | : |
| | build input |--------->| build task |--------------' : |
| '-------------' : '------------' : |
| : ^ : |
| : | : |
| [ build input ]----------------' : |
| : : |
| :............................................: |
| .-------------. : | : |
| | build input |----------------' : |
| '-------------' : : |
| :_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _: |
+----------------------------------------------------------------------------------+
```

0 comments on commit 3d716df

Please sign in to comment.