mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-01-08 06:47:22 +08:00
apostrophe
This commit is contained in:
parent
8c5b4f474c
commit
b260903e7e
1 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
= The hello-flake repo
|
||||
|
||||
Let’s clone the repository and see how the flake is defined.
|
||||
Let's clone the repository and see how the flake is defined.
|
||||
|
||||
....
|
||||
$ git clone https://codeberg.org/mhwombat/hello-flake
|
||||
|
|
@ -14,7 +14,7 @@ which provides information about the repo.
|
|||
|
||||
The `hello-flake` file is the executable we ran earlier.
|
||||
This particular executable is just a shell script, so we can view it.
|
||||
It’s an extremly simple script with just two lines.
|
||||
It's an extremely simple script with just two lines.
|
||||
|
||||
[source,bash,linenums]
|
||||
.hello-flake
|
||||
|
|
@ -31,9 +31,9 @@ $ ./hello-flake
|
|||
|
||||
Not terribly exciting, I know. But starting with such a simple package
|
||||
makes it easier to focus on the flake system without getting bogged down
|
||||
in the details. We’ll make this script a little more interesting later.
|
||||
in the details. We'll make this script a little more interesting later.
|
||||
|
||||
Let’s look at another file. The file that defines how to package a flake
|
||||
Let's look at another file. The file that defines how to package a flake
|
||||
is always called `flake.nix`.
|
||||
|
||||
[source,nix,linenums]
|
||||
|
|
@ -46,7 +46,7 @@ If this is your first time seeing a flake definition, it probably looks
|
|||
intimidating.
|
||||
Flakes are written in the Nix language, introduced in an earlier chapter.
|
||||
However, you don't really need to know Nix to follow this example.
|
||||
For now, I’d like to focus on the inputs section.
|
||||
For now, I'd like to focus on the inputs section.
|
||||
|
||||
[source,nix]
|
||||
....
|
||||
|
|
@ -63,7 +63,7 @@ packages that can be installed with the Nix package manager. The second,
|
|||
flakes. The important thing to note is that the `hello-flake` package
|
||||
_depends_ on `nixpkgs` and `flake-utils`.
|
||||
|
||||
Finally, let’s look at `flake.lock`, or rather, just part of it.
|
||||
Finally, let's look at `flake.lock`, or rather, just part of it.
|
||||
|
||||
[source,linenums]
|
||||
.flake.lock
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue