mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-01-14 18:47:56 +08:00
21 lines
232 B
Text
21 lines
232 B
Text
= In `shell.nix`
|
|
|
|
[source,nix,linenums]
|
|
.shell.nix
|
|
....
|
|
include::shell.nix[]
|
|
....
|
|
|
|
////
|
|
TODO FIX
|
|
|
|
Here's a demonstration using the shell.
|
|
|
|
....
|
|
$# echo '$ nix-shell'
|
|
$# nix-shell --run bash <<EOL
|
|
$ echo "FOO=$FOO"
|
|
$# EOL
|
|
....
|
|
|
|
////
|