mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-01-29 01:47:11 +08:00
temp
This commit is contained in:
parent
a23029eb15
commit
00bfdf2c0f
12 changed files with 161 additions and 140 deletions
|
|
@ -99,7 +99,7 @@ $# cat hello-flake
|
|||
Let's test the modified script.
|
||||
|
||||
....
|
||||
$ ./hello-flake
|
||||
$ ./hello-flake # Won't work
|
||||
....
|
||||
|
||||
What went wrong? Remember that we are in a _development_ shell. Since
|
||||
|
|
@ -140,7 +140,7 @@ $ exit
|
|||
Let's try `nix run`.
|
||||
|
||||
....
|
||||
$ nix run
|
||||
$ nix run # Won't work
|
||||
....
|
||||
|
||||
What went wrong?
|
||||
|
|
@ -171,7 +171,7 @@ When you're packaging a program written in a more powerful language such as
|
|||
Haskell, Python, Java, C, C#, or Rust,
|
||||
the language build system will usually do all that is required
|
||||
to make the dependencies visible to the program at runtime.
|
||||
In this case, adding the dependency to `buildInputs` is sufficient.
|
||||
In that case, adding the dependency to `buildInputs` is sufficient.
|
||||
====
|
||||
|
||||
This time `nix run` works.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue