diff --git a/index.html b/index.html index aa0a430..5ae35e4 100644 --- a/index.html +++ b/index.html @@ -5292,11 +5292,11 @@ by specifying the full path to hello-nix.

-
$ hello-nix # this will fail
-bash: line 40: hello-nix: command not found
-$ nix develop
-building '/nix/store/72z63qhsk4f8shg0yn81m76w56m42x7s-hello-again-env.drv'...
-$ hello-nix
+
$ 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 +5361,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 6f4548a..66411b8 100644 --- a/source/recipes/build/nix-non-flake/main.adoc0 +++ b/source/recipes/build/nix-non-flake/main.adoc0 @@ -39,6 +39,15 @@ There are various ways to deal with this problem. In this case we simply edited the script as we install it, by specifying the full path to `hello-nix`. +[NOTE] +==== +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. ....