diff --git a/index.html b/index.html index 5ae35e4..1978097 100644 --- a/index.html +++ b/index.html @@ -5287,15 +5287,30 @@ so our hello-again script won’t be able to find it.

In this case we simply edited the script as we install it, by specifying the full path to hello-nix.

+
+ + + + + +
+ + +
+

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 that case, adding the dependency to buildInputs is sufficient.

+
+
+

Here’s a demonstration using the shell.

$ nix run
-this derivation will be built:
-  /nix/store/xdld3mcyya6vzr5v7ihg1wqgq4daj2y6-hello-again.drv
-building '/nix/store/xdld3mcyya6vzr5v7ihg1wqgq4daj2y6-hello-again.drv'...
 I'm a flake, but I'm running a command defined in a non-flake package.
 Hello from your nix package!
@@ -5361,7 +5376,7 @@ Hello from your flake!
diff --git a/source/recipes/build/nix-non-flake/main.adoc0 b/source/recipes/build/nix-non-flake/main.adoc0 index 66411b8..2f3e82e 100644 --- a/source/recipes/build/nix-non-flake/main.adoc0 +++ b/source/recipes/build/nix-non-flake/main.adoc0 @@ -48,7 +48,7 @@ to make the dependencies visible to the program at runtime. In that case, adding the dependency to `buildInputs` is sufficient. ==== -Here's a demonstration using the shell. +Here's a demonstration using the flake. .... $ nix run