This commit is contained in:
Amy de Buitléir 2025-09-14 20:49:57 +01:00
parent a23029eb15
commit 00bfdf2c0f
12 changed files with 161 additions and 140 deletions

View file

@ -3,9 +3,10 @@
Now that we have a better understanding of the structure of `flake.nix`,
let's have a look at the one we saw earlier, in the `hello-flake` repo.
If you compare this flake definition to the colour-coded template
presented in the previous section, most of it should look familiar.
presented in <<_a_generic_flake>>, most of it should look familiar.
[source,nix,linenums]
// don't use linenums because part of the file is omitted
[source,nix]
.flake.nix
....
{
@ -48,7 +49,8 @@ additional development tools.
Now let's look at the section I labeled `SOME UNFAMILIAR STUFF` and
see what it does.
[source,nix,linenums,subs=quotes]
// don't use linenums because part of the file is omitted
[source,nix,subs=quotes]
....
packages = rec {
hello = pkgs.stdenv.mkDerivation rec { ❶