diff --git a/source/flake-structure/main.adoc b/source/flake-structure/main.adoc index 80e229b..f7c89ff 100644 --- a/source/flake-structure/main.adoc +++ b/source/flake-structure/main.adoc @@ -17,6 +17,7 @@ probably won't need `nixConfig` unless you're doing something fancy. I'm going to focus on what goes into the `inputs` and `outputs` sections, and highlight some of the things I found confusing when I began using flakes. +[#flake-inputs] == Inputs This section specifies the dependencies of a flake. It's an _attribute @@ -108,6 +109,7 @@ Each of the `inputs` is fetched, evaluated and passed to the `outputs` function as a set of attributes with the same name as the corresponding input. +[#flake-outputs] == Outputs This section is a function that essentially returns the recipe for diff --git a/source/nix-language/main.adoc b/source/nix-language/main.adoc index 6e98d5a..734c855 100644 --- a/source/nix-language/main.adoc +++ b/source/nix-language/main.adoc @@ -26,10 +26,16 @@ include::functions.adoc[leveloffset=+1] include::argument-sets.adoc[leveloffset=+1] +include::derivations.adoc[leveloffset=+1] + include::if.adoc[leveloffset=+1] include::let.adoc[leveloffset=+1] include::with.adoc[leveloffset=+1] +include::inherit.adoc[leveloffset=+1] + +include::import.adoc[leveloffset=+1] + // TODO discuss laziness