mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-05-13 21:21:12 +08:00
reformatting
This commit is contained in:
parent
fc035267cb
commit
bea4055fc9
3 changed files with 188 additions and 90 deletions
|
|
@ -91,8 +91,9 @@ $ sed -i 's/echo/cowsay/' hello-flake
|
|||
////
|
||||
|
||||
[source,nix,highlight=4]
|
||||
.hello-flake
|
||||
....
|
||||
$ cat hello-flake
|
||||
$# cat hello-flake
|
||||
....
|
||||
|
||||
Let’s test the modified script.
|
||||
|
|
@ -117,13 +118,14 @@ $ cp ../flake.nix.new flake.nix
|
|||
////
|
||||
|
||||
[source,nix,highlight=18..22]
|
||||
.flake.nix
|
||||
....
|
||||
$# cat flake.nix
|
||||
....
|
||||
|
||||
We restart the development shell and see that the `cowsay` command is
|
||||
now available and the script works. Because we’ve updated source files
|
||||
but haven’t `git commit`ed the new version, we get a warning message
|
||||
Now we restart the development shell and see that the `cowsay` command is
|
||||
available and the script works. Because we’ve updated source files
|
||||
but haven’t ``git commit``ed the new version, we get a warning message
|
||||
about it being "`dirty`". It’s just a warning, though; the script runs
|
||||
correctly.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue