nix-book/source/recipes/nix-shell/main.adoc0
Amy de Buitléir 5e2da971de initial commit
2025-09-04 20:40:25 +01:00

20 lines
349 B
Text

= An (old-style) Nix shell with access to a flake
If you are maintaining legacy code,
you may need to provide access to a flake in a `nix-shell`.
Here's how.
[source,nix,linenums]
.shell.nix
....
include::shell.nix[]
....
Here's a demonstration using the shell.
....
$# echo '$ nix-shell'
$# nix-shell --run bash <<EOL
$ hello-flake
$# EOL
....