mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-02-03 19:48:27 +08:00
temp
This commit is contained in:
parent
a23029eb15
commit
00bfdf2c0f
12 changed files with 161 additions and 140 deletions
|
|
@ -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 { ❶
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue