This commit is contained in:
Amy de Buitléir 2025-09-02 16:56:18 +01:00
parent 97a04e49ea
commit 90b9c96dc5
13 changed files with 288 additions and 73826 deletions

View file

@ -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.