From 25941b723c1887241b28fd5c520352806b22db70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Sun, 12 Oct 2025 16:01:25 +0100 Subject: [PATCH] expanded --- source/flake-structure/main.adoc | 2 ++ source/nix-language/main.adoc | 6 ++++++ 2 files changed, 8 insertions(+) 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