mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-05-13 17:11:13 +08:00
expanded
This commit is contained in:
parent
97a04e49ea
commit
90b9c96dc5
13 changed files with 288 additions and 73826 deletions
|
|
@ -84,7 +84,7 @@ the version in `result`.
|
|||
Now we're ready to make the flake a little more interesting.
|
||||
Instead of using the `echo` command in the script, we can use the Linux `cowsay`
|
||||
command.
|
||||
Here's the `hello-flake` file, with the modified line highlighted.
|
||||
Here's the modified `hello-flake` file.
|
||||
|
||||
////
|
||||
$ sed -i 's/echo/cowsay/' hello-flake
|
||||
|
|
@ -107,6 +107,7 @@ What went wrong? Remember that we are in a _development_ shell. Since
|
|||
shell only includes the Nix standard environment. In particular, the
|
||||
`cowsay` command is not available.
|
||||
|
||||
[#hello-flake-dependency]
|
||||
To fix the problem, we can modify `flake.nix`.
|
||||
We don't need to add `cowsay` to the `inputs` section because it's included in `nixpkgs`,
|
||||
which is already an input.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue